-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
35 lines (31 loc) · 951 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
sudo: false
language: node_js
node_js:
- node # latest stable
cache:
directories:
- 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:
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 make build
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 make test