-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (35 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
35
36
37
38
39
40
41
42
43
44
45
46
47
sudo: required
language: node_js
notifications:
email: false
# test on two node.js versions: 0.6 and 0.8
node_js:
- "6"
env:
- DEPLOY_STATUS_URL="https://api.github.com/repos/$TRAVIS_REPO_SLUG/deployments/$TRAVIS_TAG/statuses"
# services:
# - docker
before_install:
#Install cloudfoundry
- bash bin/setup.sh
- bash bin/ansibleSetup.sh
- aws s3 cp $S3_URI ./
- chmod 755 jesse.tar
- tar -xvzf jesse.tar
# Pull container.
# - sudo apt-get -qq update
# - 'docker pull webdevops/ansible:alpine-3'
# - sudo apt-get install ansible
# - sudo apt-get install python-virtualenv
before_script:
# Writeback status update for pending if exists
- bash bin/curlStatus.sh "pending" "Deployment to bluemix started"
script:
- ansible-playbook tstbk.yml
- echo hello
after_failure:
# Writeback status update for failure if exists
- bash bin/curlStatus.sh "failure" "Deployment to bluemix failed"
after_success:
# Writeback status update for failure if exists
- bash bin/curlStatus.sh "success" "Deployment to bluemix successful"