forked from imjoy-team/ImJoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 887 Bytes
/
.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
dist: trusty
addons:
chrome: stable
firefox: latest
language: node_js
node_js:
- node
cache:
directories:
- node_modules
notifications:
email: false
before_script:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - sleep 3 # give xvfb some time to start
- cd ./web
- npm prune
script:
- export NODE_OPTIONS="--max-old-space-size=4096"
- npm run check-format
- npm run lint
- npm run test
- npm run build
after_success:
- cd ..
deploy:
- provider: script
skip_cleanup: true # do not delete the built assets
script: bash ./utils/scripts/deploy.sh
on:
branch: master
- provider: script
skip_cleanup: true # do not delete the built assets
script: bash ./utils/scripts/deploy-lib.sh
on:
branch: master
env:
global:
- SOURCE_BRANCH: master
- TARGET_BRANCH: gh-pages
- LIB_TARGET_BRANCH: master