-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
34 lines (34 loc) · 1.87 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
language: node_js
cache:
yarn: true
before_install:
- export BRANCH="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
- yarn global add greenkeeper-lockfile@1
install:
- |
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 build:development # temporaly not yarn build:production until errors with minified bundle are not resolved
- yarn serve:production &
script:
- yarn test
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:
# DISCORD_WEBHOOK_URL
secure: kv2O9l8rHG7WBdViqG6BMx09g7qKxasxy2HaTS+NIvOSVp2Pmgg3C2VuqUwOUbEzEA+RQcidCpua8KZsFKdJgCe2sYV5ZeHd7h3FZ0BJKkLRCsMEcnDJ54KnKAaaUYXWxM/FfNjHR1ZZcBCHvLKwtZDAuQmq9cT4I07wQs2qSfoQYF9n4E0rbZxx/+zVIfLjnc4Z4irEaiNu1Ci4gnVXzSEvsNS+T+uswifgyeRGtNmhb861nFZ3CqLwfl663xe6VdJFKpinghABqX+ssrg1Iz5sWWP+q4qwP5BYvLZY0kvKROueYus0SKBdLh1f2NGVmKmXcCjG0lVjsga9RsePv0iyfPmXhrhM6//u1bXSjynZNhSH+i3ebWe79ToM5BRcdfYtwbOs2D5fzlFzi74HtZuac2i1b0+RiEVzexCF517LqvawGpCY4xaghmzVzJzgdTKI/KIhv3SYWOVzPZzcAczZ+vOzBolffK7hbDqVn3NGp8enz5ss0Ux7r7aCD+vxMvLR7RhdkFR7H9uJiggXzdtPIo5u/1BvmdEs6yOQEL3VWUln4y8rP8oP8f1tmne1YlZ5heNsaEo3GCJLsGYRYFauFcF4KvPRXDaSAAhnLE5ywnZv31GjEyyyU7/D/jMkdF6aDJYkWYT6zLhbLG85g7zwQ3zpgnRVfczl0L16mgI=