Skip to content

Commit 1618d88

Browse files
committed
CI checks format
1 parent 8d1f42f commit 1618d88

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ elixir:
55
- 1.6.0
66

77
before_script:
8+
- mix format --check-formatted
89
- mix credo --strict
910
# - mix dialyzer
1011

@@ -14,4 +15,4 @@ script: mix test --exclude gnuplot:true
1415
# cache:
1516
# directories:
1617
# - _build
17-
# - deps
18+
# - deps

examples/perf.exs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ defmodule Perf do
3838

3939
def data do
4040
points = [1, 10, 100, 1000, 10_000, 100_000, 1_000_000]
41-
clojure_gui = [1.487, 1.397, 1.400, 1.381, 1.440, 5.784, 49.275]
42-
elixir_gui = [0.005, 0.010, 0.004, 0.059, 0.939, 5.801, 43.464]
43-
elixir_png = [0.018, 0.001, 0.012, 0.052, 0.348, 3.494, 35.505]
44-
ubuntu_t2m = [0.004, 0.002, 0.001, 0.008, 0.211, 1.873, 19.916]
41+
clojure_gui = [1.487, 1.397, 1.400, 1.381, 1.440, 5.784, 49.275]
42+
elixir_gui = [0.005, 0.010, 0.004, 0.059, 0.939, 5.801, 43.464]
43+
elixir_png = [0.018, 0.001, 0.012, 0.052, 0.348, 3.494, 35.505]
44+
ubuntu_t2m = [0.004, 0.002, 0.001, 0.008, 0.211, 1.873, 19.916]
4545
ubuntu_stream = [0.002, 0.001, 0.001, 0.009, 0.204, 1.279, 12.858]
46-
for ds <- [clojure_gui, elixir_gui, elixir_png, ubuntu_t2m, ubuntu_stream], do: Enum.zip(points, ds)
46+
47+
for ds <- [clojure_gui, elixir_gui, elixir_png, ubuntu_t2m, ubuntu_stream],
48+
do: Enum.zip(points, ds)
4749
end
4850

4951
def plot, do: G.plot(target() ++ commands(), data())

mix.exs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ defmodule Gnuplot.MixProject do
3939
files: ["lib", "mix.exs", "README*", "LICENSE*"],
4040
maintainers: ["James Every"],
4141
licenses: ["EPL-2.0"],
42-
links: %{"GitHub" => "https://github.com/devstopfix/gnuplot-elixir",
43-
"Travis" => "https://travis-ci.org/devstopfix/gnuplot-elixir"}
42+
links: %{
43+
"GitHub" => "https://github.com/devstopfix/gnuplot-elixir",
44+
"Travis" => "https://travis-ci.org/devstopfix/gnuplot-elixir"
45+
}
4446
]
4547
end
4648
end

test/gnuplot_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ defmodule GnuplotTest do
6969
[:set, :yrange, -3..3],
7070
[:splot, 'sin(x) * cos(y)']
7171
]
72+
7273
expected = "set xrange [-3:3];\nset yrange [-3:3];\nsplot sin(x) * cos(y)"
7374
assert {:ok, expected} == G.plot(plot)
7475
end
75-
7676
end

0 commit comments

Comments
 (0)