Skip to content

Commit 0a624c0

Browse files
committed
Automagically Deploy from Github with Travis CI
1 parent 3d61ec5 commit 0a624c0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
sudo: true
2+
language: node_js
3+
node_js:
4+
- '5.7'
5+
cache:
6+
yarn: true
7+
directories:
8+
- node_modules
9+
env:
10+
global:
11+
- CF_API=https://api.ng.bluemix.net/
12+
13+
14+
- CF_SPACE=dev
15+
before_deploy:
16+
- wget https://s3.amazonaws.com/go-cli/releases/v6.12.4/cf-cli_amd64.deb -qO temp.deb && sudo dpkg -i temp.deb
17+
- rm temp.deb
18+
- cf login -a ${CF_API} -u ${CF_USERNAME} -p ${BLUEMIX_PASSWORD} -o ${CF_ORG} -s ${CF_SPACE}
19+
- cf install-plugin autopilot -r CF-Community
20+
- yarn build
21+
deploy:
22+
- edge: true
23+
provider: script
24+
script: if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cf zero-downtime-push create-react-app-devops -f ./manifest.yml; else echo "PR skip deploy"; fi
25+
skip_cleanup: true
26+
on:
27+
branch: master

0 commit comments

Comments
 (0)