2015-12-07 06:12:37 +00:00
|
|
|
---
|
2015-09-08 19:03:25 +00:00
|
|
|
language: bash
|
2016-02-23 03:29:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
2017-05-27 18:48:10 +00:00
|
|
|
before_install:
|
|
|
|
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
|
|
|
- | # epic build time improvement - see https://github.com/elm-lang/elm-compiler/issues/1473#issuecomment-245704142
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2016-02-23 03:29:13 +00:00
|
|
|
install:
|
2016-08-17 11:14:17 +00:00
|
|
|
- nvm install 6
|
|
|
|
- nvm use 6
|
2016-12-17 18:08:08 +00:00
|
|
|
- npm install
|
2017-05-27 18:48:10 +00:00
|
|
|
- if [ ! -f node_modules/.bin/elm-make-old ];
|
|
|
|
then
|
|
|
|
mv node_modules/.bin/elm-make node_modules/.bin/elm-make-old;
|
|
|
|
printf '%s\n\n' '#!/bin/bash' 'echo "Running elm-make with sysconfcpus -n 2"' '$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;
|
|
|
|
fi
|
2016-08-26 07:59:03 +00:00
|
|
|
- bin/install-elm-format linux
|
|
|
|
- export PATH=$PATH:$PWD/bin
|
2016-02-23 03:29:13 +00:00
|
|
|
|
2015-09-08 19:03:25 +00:00
|
|
|
script:
|
2016-02-23 03:29:13 +00:00
|
|
|
- bin/fetch-configlet
|
|
|
|
- bin/configlet .
|
|
|
|
- bin/build.sh
|
2016-03-14 01:05:37 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
2016-12-17 18:08:08 +00:00
|
|
|
- elm-stuff
|
2017-05-27 18:48:10 +00:00
|
|
|
- sysconfcpus
|