forked from kepano75/JWManagement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (31 loc) · 909 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
sudo: required
language: node_js
node_js:
- '8'
stages:
- name: Test
- name: Deploy to Staging
if: branch = develop AND type != pull_request
- name: Deploy to Deliver
if: branch = master AND type != pull_request
jobs:
include:
- stage: Test
name: Lint
script: npm run lint
- stage: Deploy to Staging
name: Deploy to Staging
script:
- curl https://install.meteor.com | /bin/sh
- npm install -g mup
- cd .deploy
- mup setup --config=mup.staging.js
- mup deploy --config=mup.staging.js --settings settings.json --verbose
- stage: Deploy to Deliver
name: Deploy to Deliver
script:
- curl https://install.meteor.com | /bin/sh
- npm install -g mup
- cd .deploy
- mup setup --config=mup.deliver.js
- mup deploy --config=mup.deliver.js --settings settings.json --verbose