-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (46 loc) · 2.06 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
53
language: node_js
node_js:
- "8"
cache:
- elm-stuff/build-artifacts
- tests/elm-stuff/build-artifacts
- sysconfcpus
before_install:
- | # 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
install:
- npm i -g npm@latest
- npm i -g [email protected]
- npm i -g snyk@latest
- npm i -g [email protected]
- mv $(npm config get prefix)/bin/elm-make $(npm config get prefix)/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
- npm install
- snyk test
- travis_retry elm-package install --yes
- cd tests && elm-package install --yes && cd ..
- rm -f ./node_modules/.bin/elm-make
script:
- elm-make --output=/dev/null --yes
- cd tests && elm-make --output=/dev/null --yes && cd ..
- npm run build
- npm run test
after_success:
- snyk monitor
before_deploy:
- cd ./dist
deploy:
provider: heroku
buildpack: nodejs
app: elm-express-boilerplate
api_key:
secure: x334pwy5thxf2vVh3MEN3Rd15xCGawAY5WW1wIqhAI5trolxAYuYFrB/FUIpV6ERoYY+G9kyu/igEDc3lx9FisJo7oJmhGjZEHtA6INpXVJwlKy3d/snXGFQ955kTkBfDHHg1gZZgVYgBzNVh1UvV8Hr74hq7+zGvzPc4Z4Cr2u9VtdY7Kv1MBCTib5ZyGnyQMkdxlaq9IT5NGZask/wB+Wssh7o9oP3wE1kGiUAKGi8QhOhw6ymgKDZsMo4fCIvwNXFGZRqysy9mLD9YHMOa3I2pWCtPRC1tBrbbdkbW78tqvLTN0/u6AMnd+2DRZnad6+6zANevF5EQZ0vfB4hD9DBY/ItahvOMAJdmKJMMMdUCSkHmkxGoEVP94hK4OINNOejeq5luLSeNnBg8QmXoCaLhs0ad8J3Yt4BXM/3Z3/oGX41FUy9HaOcIJCgsfh9Cspil9Saa7Ir3tt49+PoLfZt1r2eBSGWwSrw/ai/xDWv/P6leeU/335CeyqJEJlX7RXYC04VyIN5JVV/nYPZN2DOe0Atv92nctBrLXDBcYO7G2+NykDmzv6oRZ5glwjSztJX4yMHENHNhHJzx4sHN4Hqw47jxWlaDhRga0mnsio9W4oqe9IOJOIPJH4/pEKs3lHCV7LXIOyObtPJ/Mcu5GL3bW1QZNCHe54NPVQpgdY=
skip_cleanup: true