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