Skip to content

Commit 4a26171

Browse files
authored
Format the codebase and check for formatted files on CI (#46)
1 parent 8b05f97 commit 4a26171

20 files changed

+2003
-926
lines changed

.formatter.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
inputs: ["{mix,.formatter}.exs", "{lib,test}/**/*.{ex,exs}"]
3+
]

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ notifications:
77
88
otp_release:
99
- 18.0
10+
script:
11+
- if [[ $(elixir --version) = *"1.6"* ]]; then mix format --check-formatted; fi
12+
- mix test
1013
after_script:
1114
- mix deps.get --only docs
1215
- MIX_ENV=docs mix inch.report

0 commit comments

Comments
 (0)