Skip to content

Commit 49ca888

Browse files
authored
Create .travis.yml
1 parent 9dcf43b commit 49ca888

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.travis.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
sudo: false
2+
3+
language: node_js
4+
node_js: node
5+
6+
cache:
7+
directories:
8+
- elm-stuff/build-artifacts
9+
- elm-stuff/packages
10+
- sysconfcpus
11+
os:
12+
- linux
13+
14+
env: ELM_VERSION=0.18.0
15+
16+
before_install:
17+
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
18+
19+
install:
20+
- node --version
21+
- npm --version
22+
- npm install -g elm@$ELM_VERSION elm-test
23+
- git clone https://github.com/NoRedInk/elm-ops-tooling
24+
- elm-ops-tooling/with_retry.rb elm package install --yes
25+
# Faster compile on Travis.
26+
- |
27+
if [ ! -d sysconfcpus/bin ];
28+
then
29+
git clone https://github.com/obmarg/libsysconfcpus.git;
30+
cd libsysconfcpus;
31+
./configure --prefix=$TRAVIS_BUILD_DIR/sysconfcpus;
32+
make && make install;
33+
cd ..;
34+
fi
35+
36+
before_script:
37+
- cd tests && $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-make --yes Tests.elm && cd ..
38+
39+
script:
40+
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-test

0 commit comments

Comments
 (0)