1
1
version : 2
2
2
jobs :
3
- Python3 :
3
+ Python2 :
4
4
build :
5
- working_directory : ~/sc2reader
5
+ # working_directory: ~/sc2reader
6
6
docker :
7
- - image : python:3.6.2
7
+ - image : python:2.7.13
8
8
branches :
9
9
ignore :
10
10
- ggmaster
@@ -15,23 +15,33 @@ jobs:
15
15
steps :
16
16
checkout
17
17
run :
18
- name : Flake8 and unittests on Python 3.6.2
18
+ name : Flake8 and unittests on Python 2.7.13
19
19
command : |
20
- python -m venv venv
21
- . venv/bin/activate
20
+ # pip install virtualenv
21
+ # virtualenv sc2reader
22
+ # pwd
23
+ # ls
24
+ # cd sc2reader
25
+ # source bin/activate
22
26
pwd
27
+ ls
23
28
python -V
24
29
pip -V
25
30
pip install hacking Pillow
31
+ echo "Flake8 round one"
26
32
python -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
33
+ echo "Flake8 round two"
27
34
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
35
+ echo "Unittest round one"
28
36
python -m unittest discover test_replays
37
+ echo "Unittest round two"
29
38
python -m unittest discover test_s2gs
30
- Python2 :
39
+ echo "Done."
40
+ Python3 :
31
41
build :
32
- # working_directory: ~/sc2reader
42
+ working_directory : ~/sc2reader
33
43
docker :
34
- - image : python:2.7.13
44
+ - image : python:3.6.2
35
45
branches :
36
46
ignore :
37
47
- ggmaster
@@ -42,25 +52,15 @@ jobs:
42
52
steps :
43
53
checkout
44
54
run :
45
- name : Flake8 and unittests on Python 2.7.13
55
+ name : Flake8 and unittests on Python 3.6.2
46
56
command : |
47
- # pip install virtualenv
48
- # virtualenv sc2reader
49
- # pwd
50
- # ls
51
- # cd sc2reader
52
- # source bin/activate
57
+ python -m venv venv
58
+ . venv/bin/activate
53
59
pwd
54
- ls
55
60
python -V
56
61
pip -V
57
62
pip install hacking Pillow
58
- echo "Flake8 round one"
59
63
python -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
60
- echo "Flake8 round two"
61
64
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
62
- echo "Unittest round one"
63
65
python -m unittest discover test_replays
64
- echo "Unittest round two"
65
66
python -m unittest discover test_s2gs
66
- echo "Done."
0 commit comments