-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
51 lines (51 loc) · 2.08 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
dist: xenial
sudo: false
language: python
cache: pip
python:
- '3.8'
before_install:
- openssl aes-256-cbc -K $encrypted_dc72a5ae7e49_key -iv $encrypted_dc72a5ae7e49_iv
-in pari_qa.enc -out pari_qa -d
- wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.11.1-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
- openssl aes-256-cbc -k "$vault_file_pass" -in .vault_pass.enc -out vault_pass -d
install:
- npm install -g less
- pip install ansible==2.2.1
- pip install -r requirements.dev.txt
- npm install -g request
before_script:
- createuser pari
- sudo -u postgres psql -c 'create database test_pari;'
- sudo -u postgres psql -d test_pari -c 'CREATE EXTENSION postgis;'
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- mkdir -p media/uploads/
- cp -r core/static/img/stories-1.jpg media/uploads/stories-1.jpg
script:
- source scripts/test.sh
after_script:
- rm vault_pass
deploy:
provider: script
script: ANSIBLE_VAULT_PASSWORD_FILE=$TRAVIS_BUILD_DIR/vault_pass sh travis_deploy_to_staging.sh
skip_cleanup: true
on:
branch: release-candidate
addons:
postgresql: 9.5
apt:
packages:
- postgresql-9.5-postgis-2.3
firefox: 53.0.2
ssh_known_hosts:
- staging.ruralindiaonline.org
- 206.189.18.112
notifications:
slack: countermedia:TsEo2IDocyJtRqLR1Mzi0zuT
env:
global:
secure: AWUp0f9cgVuR7aH7a3YWRn2/XPbc+MPb/RbVP7zMoiErRw+hzz8vPxqyHVuSm3YF+i6jNfIRKD0g0kaw9hUh5aJu05xEg6qcsze1PThmfy8ECyss4Aaab8VPuEa3ApQyw3k2pHOlJ0xpdAGLHjYSpqkUVYSWiHDI2MJiNO9CVVunggTORqo7qjunKUFuOmUpE6/0MOxunNnU0LYcQzmSs5/DsAmxS1DDt+APDm/FQjlPNKZhXaR1FxmeCcULBYi0icnm3EoRqfrtec7NrWyNhjkJei2qOpx/VKEJmm48K9zwuuv0J2LqhNbh43XlBwhKTayZZ83EAGEF+EMrPKExNreW7F49dhilkgRjLI3CoSF8ENIZsed5lw+kdfVe0bdxOeJgsDmhC398ZfSyzBDowFVF5ZyetRELC2Ok+IjpgshYMDt0CjnWy7QyiWg5gs9LPmC16TONqdgdOUrhZYdBJownTyBboCahBhSmqxRmFClenaFaZUMCp6spNGnfFE7oE6wlOZNp1h7uc5NTlP55SkjZPRoGgcfjchU2t5sIbPMMbi+1tHI6QTL5YcH+kCvxQQxjdYMFFOYKbZi5ooqgvUhV2OF/FB/DpUEUdHB+mAjKub6MIJ5OrAfrRYXCIOZNkyxzivqt4JEnA+9Bf7XdGbvJHJjpn52/pC/A4yypIvg=