Skip to content

Commit

Permalink
Merge pull request #10 from iosphere/feature/speed-up-travis
Browse files Browse the repository at this point in the history
Use sysconfcpus to speed up travis builds
  • Loading branch information
klaftertief authored Oct 18, 2017
2 parents ed4c7e9 + 2958b00 commit 4833ef6
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,34 @@ sudo: false

language: node_js
node_js:
- "5"
- node # latest stable

cache:
directories:
- node_modules
- tests/elm-stuff
- elm-stuff
- sysconfcpus
- node_modules
- tests/elm-stuff
- elm-stuff

install:
- npm install -g elm
- npm install
- elm-package install -y
- cd tests && elm-package install -y && cd ..
# Travis exposes a few more CPUs (like... 14 more) than the code can actually
# use. This program allows us to lie to the compiler about how many CPUs it
# can use. In this case, we're actually telling the truth about the number of
# usable CPUs, so build times go way down.
- |
if [ ! -d sysconfcpus/bin ];
then
git clone https://github.com/obmarg/libsysconfcpus.git;
cd libsysconfcpus;
./configure --prefix=$TRAVIS_BUILD_DIR/sysconfcpus;
make && make install;
cd ..;
fi
script:
- make build
- make test
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 make build
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 make test

0 comments on commit 4833ef6

Please sign in to comment.