-
Notifications
You must be signed in to change notification settings - Fork 96
/
.travis.yml
31 lines (26 loc) · 849 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
31
language: python
python:
- 3.5
sudo: false
before_install:
- openssl aes-256-cbc -K $encrypted_7ae2332c8772_key -iv $encrypted_7ae2332c8772_iv
-in key.enc -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
- eval $(ssh-agent)
- ssh-add ~/.ssh/id_rsa
- cp ssh_config ~/.ssh/config
- git config --global user.name "Xuanwo"
- git config --global user.email "xuanwo.cn@gmail.com"
- git config --global push.default simple
install:
- pip install requests
script:
- grep -P -o "((http|ftp|https)://)(([a-zA-Z0-9\._-]+\.[a-zA-Z]{2,6})|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,4})*(/[a-zA-Z0-9\&%_\./-~-]*)?"
README.md > sites.txt
- python3 webtest.py
- git clone git@github.com:Xuanwo/WebsitesForStudents.git update
- cp -f badsite.json update
- cd update
- git add --all
- git commit -m "[ci skip] update badsite.json"
- git push