forked from ab77/netflix-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·52 lines (43 loc) · 2.04 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
dist: trusty
group: edge
sudo: required
language: python
python:
- 2.7
env:
global:
- secure: kDAI818hwV0MF87EI0PANbIsX/AIiNrsI0+hdiOd4bmH7VGM71/qjaaoZVyDmfkkEvA/qrn4LUuH3YQ7VTtrgZm/ggDLxi03XIvJwez9knSc9x/XLdd/Xj/Q36KYrccuZwJsDUAtjiL6oWp84wbuvESeuFdp9ufn5mSMRAcaQbIdYudxGbU7AQrP0CC5huJvF8aoaIZFwhV2d+n9YLqxpZ9Etax5BV+cWAu9AXGu+gt4xF1dKcYxqsdSvUahrq8Z2IbCcy/KSBbZLjmwP8ze4nFl0yocW++sNqr0oEa0KNBEgwO6vvolmkPm93dz7AewMxkWSeDFCSZKHmZWuqVVllUuJfKOUOeF18NjYSKUayuHzml7CBQZgMBjPYdaa8jIgp/uHwMwPYYP/a6zSkevZ0Dqkq/qREF3NCVXs8BLgM8c9XcI1r6D9U80sMVj4829/tEikK9QqO6W0Q7qf0+V9j48PR5qZXbIthj+pon7Q6k3dNUvaAKWOalOT5IS5bBp9gLrGDakhnB+iRTZ8MnFXMT59XI9pvTsoFYxBsWcY0zTaxiivKJ25eCeESNVnqBWR01/TotsdeIcyF9dbsAT/hmp8hMtmi009eIPdVkyMoKHQXEYN3z4B7Ux11clVLDIsY9BX91XVaagXKEUppaIadlEnRb5heZRzXBENgRa/XI=
cache:
directories:
- "$HOME/.cache/pip"
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
before_install:
- tests/__isfork.sh
- openssl aes-256-cbc -K $encrypted_45757fbb12c0_key
-iv $encrypted_45757fbb12c0_iv -in id_rsa.travis.enc -out id_rsa.travis -d
- sudo apt-get -y install build-essential python-dev libffi-dev libssl-dev
install:
- tests/__isfork.sh
- export PATH=$HOME/.local/bin:$PATH
- pip install pip --upgrade
- pip install -r tests/requirements.txt --upgrade
before_script:
- tests/__isfork.sh
- chmod 600 id_rsa.travis && chmod 644 id_rsa.travis.pub
- export NAME=$(uuidgen)
- export RESOLVER=$(grep nameserver /etc/resolv.conf)
- python tests/testbuild.py digitalocean --create --name ${NAME} --api_token=$do_api_v2_token
--branch=$TRAVIS_BRANCH --region=$do_region --tb_user=$he_tunnel_broker_uname --tb_passwd=$he_tunnel_broker_passwd
--tb_key=$he_tunnel_update_key --tb_index=$he_tunnel_index || (python tests/testbuild.py
digitalocean --destroy --name ${NAME} --api_token=$do_api_v2_token && false)
script:
- tests/__isfork.sh
- true
after_script:
- tests/__isfork.sh
- printf "${RESOLVER}\n" | sudo tee /etc/resolv.conf
- python tests/testbuild.py digitalocean --destroy --name ${NAME} --api_token=$do_api_v2_token
after_success:
- tests/__isfork.sh
- true