forked from wkentaro/gdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (49 loc) · 1.34 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
59
60
61
sudo: false
language: python
python:
- '2.7'
- '3.3'
- '3.4'
- '3.5'
- '3.6'
- '3.7-dev'
- pypy
branches:
only:
- master
notifications:
email: false
before_install:
- |
if [ "$TRAVIS_PYTHON_VERSION" != "3.3" ]; then
pip install black
black --check .
# https://github.com/CiscoDevNet/virlutils/issues/73
pip install flake8
flake8 .
fi
install:
- pip install .
script:
# other than google drive
- output=/tmp/gdown_r
- gdown https://raw.githubusercontent.com/wkentaro/gdown/3.1.0/gdown/__init__.py -O $output --quiet
- test $(md5sum $output | awk '{print $1}') = 2a51927dde6b146ce56b4d89ebbb5268
- rm -rf $output
# small file
- output=/tmp/spam.txt
- gdown https://drive.google.com/uc?id=0B9P1L--7Wd2vU3VUVlFnbTgtS2c -O $output --quiet
- test $(cat $output) = spam
- rm -rf $output
# large file
- output=/tmp/apc2015_object_images.tgz
- gdown https://drive.google.com/uc?id=0B9P1L--7Wd2vNm9zMTJWOGxobkU -O $output --quiet
- test $(md5sum $output | awk '{print $1}') = fa837a88f0c40c513d975104edf3da17
- rm -rf $output
# large file to stdout
- gdown https://drive.google.com/uc?id=0B9P1L--7Wd2vNm9zMTJWOGxobkU -O - --quiet | tar zxvf -
- rm -rf 20150428_collected_images/
after_success:
- rm -f dist/*.tar.gz
- python setup.py sdist
- pip install dist/*.tar.gz