forked from orizens/echoes-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 847 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
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:
- "8.9.0"
install:
- 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:domain
- npm run copy:heroku
- npm run copy:package
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