-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
44 lines (44 loc) · 2.95 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
dist: xenial # https://docs.travis-ci.com/user/reference/xenial/
language: node_js
services:
- docker
cache:
directories:
- "~/.cache" # based on: https://docs.cypress.io/guides/guides/continuous-integration.html#Travis
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.4
- export PATH="$HOME/.yarn/bin:$PATH"
- export BRANCH="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
install:
- sudo apt-get install -y libgconf-2-4 # https://github.com/cypress-io/cypress/issues/1526
- yarn global add greenkeeper-lockfile
- |
if [[ $BRANCH == "greenkeeper/"* ]]; then
echo Greenkeeper build using .yarnrc.greenkeeper; cp .yarnrc.greenkeeper .yarnrc; yarn install;
else
echo Normal build using .yarnrc and --frozen-lockfile option; yarn install --frozen-lockfile;
fi
before_script:
- greenkeeper-lockfile-update
- yarn ganache:start > /dev/null &
- yarn start &
- wait-on http-get://localhost:3000 # webserver
- wait-on tcp:localhost:8545 # ganache
script:
- yarn test # jest tests
- yarn cypress:run
after_script: greenkeeper-lockfile-upload
# discord webhooks hack until this is released: https://github.com/travis-ci/travis-tasks/pull/71
after_success:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $DISCORD_WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $DISCORD_WEBHOOK_URL
env:
global:
- secure: CEe2RntKnyZa89E0cx3thLcTU0AJ5TyWayO4y+4FYJ1d3nEv8IS3y5F6fZcaqO/GYCtr7xUIOoqYOPWcWIeLDo2QMBWntJU26LXezrVP90idYkv9PRpB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