forked from wikimedia/WikiContrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (58 loc) · 1.99 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
48
49
50
51
52
53
54
55
56
57
58
matrix:
include:
- language: python
python:
- 3.5.2
services: mysql
before_install:
- cd backend/Contraband
- mv contraband/.env.example contraband/.env
- mv contraband/local_settings.py contraband/local_settings_sample.py
- mv contraband/local_settings_travis.py contraband/local_settings.py
- mysql -e 'create database travis_db;'
install:
- pip3 install -r requirements.txt
script:
- python manage.py migrate --noinput
- python manage.py collectstatic --noinput
# - python manage.py test
- echo "Temporarily tests are disabled"
addons:
ssh_known_hosts: "login.tools.wmflabs.org"
before_deploy:
- cd ../../
- openssl aes-256-cbc -K $encrypted_382dfcbe1831_key -iv $encrypted_382dfcbe1831_iv -in 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
- ls
deploy:
provider: script
script: bash deploy/deploy_backend.sh
on:
branch: master
- language: node_js
node_js:
- 4.2.6
before_install:
- cd frontend/WikiContrib-Frontend/
install:
- echo "npm install currently disabled"
addons:
ssh_known_hosts: "login.tools.wmflabs.org"
script:
- echo "npm test temporarily disabled"
before_deploy:
- cd ../../
- openssl aes-256-cbc -K $encrypted_382dfcbe1831_key -iv $encrypted_382dfcbe1831_iv -in 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
- ls
deploy:
provider: script
script: bash deploy/deploy_frontend.sh
on:
branch: master