-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.travis.yml
44 lines (42 loc) · 991 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
sudo: required
language: node_js
node_js: 8.8.1
addons:
ssh_known_hosts: 52.211.52.39
chrome: stable
stages:
- name: Precache
- name: Build
- name: Deploy
- name: Unit-test-run
- name: E2e-test-run
cache:
directories:
- node_modules
before_deploy:
- openssl aes-256-cbc -K $encrypted_3b9e3d10b787_key -iv $encrypted_3b9e3d10b787_iv -in id_rsa.enc -out id_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 id_rsa
- ssh-add id_rsa
script:
- echo "skipping tests"
jobs:
fast_finish: true
include:
- stage: Precache
script: true
install: npm install
- stage: Build
skip_cleanup: true
script: npm run build
- stage: Deploy
if: "(branch = development AND type = push)"
deploy:
provider: script
skip_cleanup: true
script: ssh -o StrictHostKeyChecking=no -i id_rsa [email protected] /home/ubuntu/www/run_ds_pages.sh
on: development
- stage: Unit-test-run
script: npm run test
- stage: e2e-test-run
script: npm run e2e:CI