Skip to content
Prev Previous commit
Next Next commit
bad old copy & paste
  • Loading branch information
Dominik Neise committed Jun 27, 2019
commit 4fceac166789596d546e3f3e19cb9049fe0c58d7
51 changes: 29 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,43 @@
version: 2.1

my-steps: &steps
- checkout
- run: sudo pip install -r requirements.txt
- run: sudo pip install flake8 pytest
- run: python --version ; pip --version ; pwd ; ls -l
# stop the build if there are Python syntax errors or undefined names
- run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
#- run: pytest # test_s2gs test_replays
- run: python -m unittest discover test_s2gs
- run: python -m unittest discover test_replays
- when:
condition: << perform_black_check >>
steps:
run:
- pip install black
- black . --check
version: 2.0

jobs:
Python2:
perform_black_check: false
docker:
- image: circleci/python:2.7.15
steps: *steps
steps:
- checkout
- run: sudo pip install -r requirements.txt
- run: sudo pip install flake8 pytest
- run: python --version ; pip --version ; pwd ; ls -l
# stop the build if there are Python syntax errors or undefined names
- run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
#- run: pytest # test_s2gs test_replays
- run: python -m unittest discover test_s2gs
- run: python -m unittest discover test_replays



Python3:
perform_black_check: true
docker:
- image: circleci/python:3.7
steps: *steps
steps:
- checkout
- run: sudo pip install -r requirements.txt
- run: sudo pip install flake8 pytest black
- run: python --version ; pip --version ; pwd ; ls -l
# stop the build if there are Python syntax errors or undefined names
- run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- run: black . --check
#- run: pytest # test_s2gs test_replays
- run: python -m unittest discover test_s2gs
- run: python -m unittest discover test_replays


workflows:
version: 2
Expand Down