forked from coala/gh-board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (63 loc) · 1.47 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# `sudo:false` for faster builds.
sudo: false
language: node_js
cache:
directories:
- "node_modules"
.disable_global: &disable_global
after_success: false
after_failure: false
deploy: false
.integration: &integration
<<: *disable_global
stage: integration
# Needed for Firefox
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
script: script/run-integration-test.sh
# env forces jobs to be created from the top level settings
env:
jobs:
include:
- <<: *disable_global
stage: moban
language: python
python: 3.6
cache: pip
before_install: false
install: pip install moban
before_script: false
script: .ci/check_moban.sh
- *integration
allow_failures:
- *integration
before_install:
- npm install --no-save --no-optional --only=dev [email protected]
install:
- npm install --no-save --no-optional
script:
# bufferstream in package-lock.json means optional dependencies
# have been included.
- if grep bufferstream package-lock.json ; then false; fi
- script/build.sh
- npm run test
after_success:
- codecov
after_failure:
- codecov
notifications:
email: false
webhooks: https://www.travisbuddy.com/
on_success: never
# Remove /dist/ from .gitignore
before_deploy:
- sed -i '/dist\//d' ./.gitignore
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep-history: true
on:
branch: master