Skip to content

Commit

Permalink
"bare-bones" .travis.yml file with sysconfcpus script to improve comp…
Browse files Browse the repository at this point in the history
…ilation time dwyl/learn-travis#31
  • Loading branch information
nelsonic committed Jan 3, 2018
1 parent 5f0de12 commit 4ec849d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ before_install:
fi
install: # install specific versions of elm & elm-test
- npm install -g elm@$ELM_VERSION elm-test@$ELM_TEST elm-format@exp
- npm install -g elm@$ELM_VERSION elm-test@$ELM_TEST
# the next 3 lines are courtesy of @rtfeldman https://git.io/vbj0j
- mv $(npm config get prefix)/bin/elm-make $(npm config get prefix)/bin/elm-make-old
- printf "#\041/bin/bash\n\necho \"Running elm-make with sysconfcpus -n 2\"\n\n$TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-make-old \"\$@\"" > $(npm config get prefix)/bin/elm-make
- chmod +x $(npm config get prefix)/bin/elm-make
- travis_retry elm package install --yes # install main project dependencies

script:
- elm-format --validate PhotoGroove.elm # lint / format-check main file
- elm-test --verbose # run the tests!
- elm-test --verbose

0 comments on commit 4ec849d

Please sign in to comment.