forked from wikimedia/labs-tools-gdrive-to-commons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 848 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
language: python
python:
- 3.5.3
services: mysql
install:
- pip install -q -r requirements-deploy.txt
before_script:
- mv gdrive_to_commons/local_settings_travis.py gdrive_to_commons/local_settings.py
- mysql -e 'create database travis_ci_db;'
- python manage.py migrate --noinput
- python manage.py collectstatic --noinput
addons:
ssh_known_hosts: "${DEPLOY_HOST_BASTION}"
script:
- python manage.py test
before_deploy:
- openssl aes-256-cbc -K $encrypted_1371dcc65916_key -iv $encrypted_1371dcc65916_iv
-in deploy_scripts/deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
- echo -e "Host $SERVER_IP_ADDRESS\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
deploy:
provider: script
script: bash deploy_scripts/deploy.sh
on:
branch: master