-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 916 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
28
29
30
sudo: true
dist: xenial
language: python
python:
- '3.7'
addons:
apt:
packages:
- openvpn
before_install:
- ls -la zyc2-vpn/
- openssl aes-256-cbc -K $encrypted_0c65535e3e7a_key -iv $encrypted_0c65535e3e7a_iv
-in zyc2-vpn/up-user.enc -out zyc2-vpn/up-user -d
- openssl aes-256-cbc -K $encrypted_d74a9efc4525_key -iv $encrypted_d74a9efc4525_iv
-in zyc2-vpn/zyc2-vpn-user.ovpn.enc -out zyc2-vpn/zyc2-vpn-user.ovpn -d
- ls -la zyc2-vpn/
- cp test/user_example.json test/user.json
- user=$(head -n 1 zyc2-vpn/up-user)
- pass=$(tail -n 1 zyc2-vpn/up-user)
- sed -i "s/example_user/$user/" test/user.json
- sed -i "s/example_password/$pass/" test/user.json
- cat zyc2-vpn/up-user
- cat zyc2-vpn/zyc2-vpn-user.ovpn
- sudo openvpn --config zyc2-vpn/zyc2-vpn-user.ovpn --auth-user-pass zyc2-vpn/up-user
- ping -c 3 10.12.0.132
install:
- pip install -r requirements.txt
script:
- cd test
- python3 test_cF.py