forked from kobotoolbox/kobocat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (23 loc) · 819 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
# Don't double-build PR commits. See: http://stackoverflow.com/a/31882307/1877326
branches:
only:
- master
sudo: false
language: python
python:
- '2.7'
script:
-
after_success:
- test "$TRAVIS_PULL_REQUEST" == 'false' || exit 0
- test "$TRAVIS_BRANCH" == 'master' || exit 0
- echo '*** Deploying to staging server'
- openssl aes-256-cbc -K $encrypted_cddd71e0ad67_key -iv $encrypted_cddd71e0ad67_iv
-in .travis/staging_deploy_key.pem.enc -out .travis/staging_deploy_key.pem -d
- chmod 600 .travis/staging_deploy_key.pem
- eval "$(ssh-agent)"
- ssh-add .travis/staging_deploy_key.pem
- ssh -o UserKnownHostsFile=.travis/staging_known_host [email protected] /home/ubuntu/scripts/deploy.sh kobocat "$TRAVIS_COMMIT"
notifications:
irc: irc.freenode.org#kobotest
flowdock: ad631fc562736cf87e0c4439f9518f9d