Skip to content

Commit

Permalink
Adding formatting check to CI (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysarson authored and Janiczek committed Jul 3, 2019
1 parent 927cb04 commit 23c1a1a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -4,7 +4,6 @@ node_js:
lts/*

before_install:
- npm install -g elm@0.19.0-no-deps elm-test@0.19.0-rev6

script: make && make test
- npm install -g elm@0.19.0-no-deps elm-test@0.19.0-rev6 elm-format@0.8.1

script: make && make test && make lint
9 changes: 9 additions & 0 deletions Makefile
Expand Up @@ -12,3 +12,12 @@ build:
test:
elm make src/library/Todo.elm --output /dev/null # build the library just to test it compiles
elm-test

.PHONY: format
format:
elm-format . --yes


.PHONY: lint
lint:
elm-format . --validate
2 changes: 2 additions & 0 deletions src/compiler/Stage/Desugar.elm
Expand Up @@ -151,6 +151,7 @@ desugarUnit =
Ok Canonical.Unit



-- HELPERS


Expand All @@ -159,6 +160,7 @@ desugarUnit =
-- from
Frontend.Lambda [ arg1, arg2 ] body
-- to
Canonical.Lambda arg1 (Canonical.Lambda arg2 body)
Expand Down
1 change: 0 additions & 1 deletion tests/ParserTest.elm
Expand Up @@ -611,7 +611,6 @@ expr =
)
]
)

]
)

Expand Down

0 comments on commit 23c1a1a

Please sign in to comment.