-
Notifications
You must be signed in to change notification settings - Fork 345
/
.travis.yml
46 lines (46 loc) · 878 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
43
44
45
46
sudo: required
dist: trusty
# addons:
# apt:
# sources:
# - google-chrome
# packages:
# - google-chrome-stable
env:
global:
- GH_REF: github.com/orizens/echoes-player.git
language: node_js
node_js:
- '12.15.0'
install:
# - nvm use
- npm install karma-es6-shim
- npm install
script:
- npm run test:ci
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
after_script:
- process.exit()
after_success:
# - chmod +x ./config/deploy.sh
# - ./config/deploy.sh
- npm run build:env
- npm run build:prod
- npm run copy:license
- npm run copy:package
- npm run copy:homepage
deploy:
provider: pages
local_dir: ./dist
skip_cleanup: true
github_token: $GH_TOKEN
name: deployed commit $TRAVIS_COMMIT from travis
on:
branch: master
cache:
directories:
- $HOME/.nvm
- node_modules