forked from blackbaud/skyux-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (40 loc) · 1.12 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
language: node_js
sudo: required
dist: trusty
env:
- TEST_COMMAND=coverage
- TEST_COMMAND=e2e
node_js:
- "8"
- "6"
script: "npm run lint && npm run $TEST_COMMAND"
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
branches:
only:
- master
- /^rc-.*$/
- /^[0-9]+\.[0-9]+\.[0-9]+.*/
before_install:
- sudo cp ./ssl/skyux-ca.crt /usr/local/share/ca-certificates/skyux-ca.crt
- sudo update-ca-certificates
before_script:
- "export CHROME_BIN=chromium-browser"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
after_success:
- bash <(curl -s https://codecov.io/bash) -s coverage/builder -F builder
- bash <(curl -s https://codecov.io/bash) -s coverage/runtime/ -F runtime
- bash <(curl -s https://codecov.io/bash) -s coverage/src-app/ -F srcapp
# Run the deployment after all jobs have been successfully completed.
# https://docs.travis-ci.com/user/build-stages
jobs:
include:
- stage: deploy
env: TEST_COMMAND=none
script: bash <(curl -s https://blackbaud.github.io/skyux-travis/after-success.sh)