forked from kepano75/JWManagement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (56 loc) · 1.5 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
55
56
57
58
sudo: required
language: node_js
node_js:
- '8'
before_install:
- curl https://install.meteor.com | /bin/sh
- npm install -g mup
stages:
# Staging
- name: "Staging Pre-deploy"
if: branch = develop
- name: "Staging Deploy"
if: branch = develop AND type = push
- name: "Staging Post-deploy"
if: branch = develop AND type = push
# Production
- name: "Production Pre-deploy"
if: branch = master
- name: "Production Deploy"
if: branch = master AND type = push
- name: "Production Post-deploy"
if: branch = master AND type = push
jobs:
include:
# Staging
- stage: "Staging Pre-deploy"
name: Logs
script: .deploy/logs.staging.sh
- stage: "Staging Pre-deploy"
name: Lint
script: .deploy/lint.sh
- stage: "Staging Deploy"
name: Setup
script: .deploy/setup.staging.sh
- stage: "Staging Deploy"
name: "Build & Push"
script: .deploy/deploy.staging.sh
- stage: "Staging Post-deploy"
name: Logs
script: .deploy/logs.staging.sh
# Production
- stage: "Production Pre-deploy"
name: Logs
script: .deploy/logs.production.sh
- stage: "Production Pre-deploy"
name: Lint
script: .deploy/lint.sh
- stage: "Production Deploy"
name: Setup
script: .deploy/setup.production.sh
- stage: "Production Deploy"
name: "Build & Push"
script: .deploy/deploy.production.sh
- stage: "Production Post-deploy"
name: Logs
script: .deploy/logs.production.sh