forked from AnSyn/ansyn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (42 loc) · 1.13 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
sudo: required # is required to use docker service in travis
addons:
chrome: stable
language: node_js
node_js:
- 'node'
services:
- docker
- xvfb
before_install:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
install:
- npm install
# Init GUI
before_script:
- "export DISPLAY=:99.0"
#- apt-get install graphicsmagick # for e2e screenshots
script:
- npm run lint
- npm run test:single-run
- npm run build:libs
- sh -x scripts/build.sh ansyn $TRAVIS_COMMIT $TRAVIS_TAG
cache:
directories:
- ./node_modules
before_deploy:
- docker --version
- pip install --user awscli # install aws cli w/o sudo
- export PATH=$PATH:$HOME/.local/bin # put aws in the path
deploy:
- provider: script
script: sh -x scripts/deploy.sh $REPO_DEV $TRAVIS_COMMIT $CLUSTER $SERVICES_DEV
skip_cleanup: true
on:
branch: master
- provider: script
script: sh -x scripts/deploy.sh $REPO_PROD $TRAVIS_TAG $CLUSTER $SERVICES_PROD
skip_cleanup: true
on:
tags: true
notifications:
email: false