-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (48 loc) · 1.28 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
language: node_js
node_js:
- node
env:
global:
- PATH=$HOME/.local/bin:$PATH
cache:
directories:
- client/node_modules
- server/node_modules
- $HOME/.local/bin
stages:
- validate
- name: deploy-staging
if: type != pull_request AND branch = staging
- name: deploy-production
if: type != pull_request AND branch = master
jobs:
include:
- stage: validate
name: Validate client
install: ./platform/ci-client-install.sh
script: ./platform/ci-client-validate.sh
- name: Validate server
install: ./platform/ci-server-install.sh
script: ./platform/ci-server-validate.sh
- stage: deploy-staging
name: Deploy client
env: STAGE=staging
install:
- ./platform/ci-client-install.sh
- pip install --user awscli
script: ./platform/ci-client-deploy.sh
- name: Deploy server
env: STAGE=staging
install: ./platform/ci-server-install.sh
script: ./platform/ci-server-deploy.sh
- stage: deploy-production
name: Deploy client
env: STAGE=production
install:
- ./platform/ci-client-install.sh
- pip install --user awscli
script: ./platform/ci-client-deploy.sh
- name: Deploy server
env: STAGE=production
install: ./platform/ci-server-install.sh
script: ./platform/ci-server-deploy.sh