-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.05 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
sudo: true
language: node_js
node_js:
- '5.7'
cache:
yarn: true
directories:
- node_modules
env:
global:
- CF_API=https://api.eu-gb.bluemix.net/
- CF_ORG=random-dev
- CF_SPACE=dev
before_deploy:
- wget https://s3.amazonaws.com/go-cli/releases/v6.12.4/cf-cli_amd64.deb -qO temp.deb && sudo dpkg -i temp.deb
- rm temp.deb
- cf api https://api.eu-gb.bluemix.net
- cf login -a ${CF_API} -u ${CF_USERNAME} -p ${BLUEMIX_PASSWORD} -o ${CF_ORG} -s ${CF_SPACE}
- cf install-plugin autopilot -r CF-Community
- yarn build
deploy:
- edge: true
provider: script
script: if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cf zero-downtime-push automation-demo-staging -f ./manifest-staging.yml; else echo "PR skip deploy"; fi
skip_cleanup: true
on:
branch: master
- edge: true
provider: script
script: if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cf zero-downtime-push automation-demo -f ./manifest.yml; else echo "PR skip deploy"; fi
skip_cleanup: true
on:
tags: true