-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 loc) · 1.26 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
sudo: false
os:
- linux
language: node_js
node_js:
- "--lts"
cache:
yarn: true
directories:
- elm-stuff/build-artifacts
- elm-stuff/packages
- tests/elm-stuff/build-artifacts
- tests/elm-stuff/packages
- sysconfcpus
before_install:
# For sysconfcpus
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
install:
- npm install -g yarn elm elm-test
# Faster compile on Travis.
- |
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
# Must manually specify this now that we are defining our own install procedure instead of the yarn default
- yarn
before_script:
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-make --yes
- cd tests/ && $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-make --yes --output=/dev/null Tests.elm && cd ..
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 yarn build
script:
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 yarn test
deploy:
provider: pages
skip_cleanup: true
local_dir: dist/
github_token: $GITHUB_TOKEN
target_branch: gh-pages
on:
branch: master