Skip to content

Commit

Permalink
re-enable libsysconfcpus script in .travis.yml for compiler speedup d…
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jan 3, 2018
1 parent 1d7940e commit 4014cd3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ before_install:
# - if [ ${TRAVIS_OS_NAME} == "osx" ];
# then brew update; brew install nvm; mkdir ~/.nvm; export NVM_DIR=~/.nvm; source $(brew --prefix nvm)/nvm.sh;
# fi
# - | # build time improvement - 10 mins >> 5 sec! see https://git.io/vQcqz
# 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
- | # build time improvement - 10 mins >> 5 sec! see https://git.io/vQcqz
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
install: # install specific versions of elm & elm-test
- npm install -g elm@$ELM_VERSION elm-test@$ELM_TEST elm-format@exp
# 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
- 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
- pwd

Expand Down

0 comments on commit 4014cd3

Please sign in to comment.