Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update circle.yml
  • Loading branch information
cclauss authored Aug 23, 2017
commit 8d15646c2bd51051ede3cd87f21d5076795dfbe2
104 changes: 54 additions & 50 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,54 @@
version: 2
jobs:
build:
working_directory: ~/sc2reader
docker:
- image: python:3.6.2
steps:
- checkout
- run:
name: Flake8 and unittests on Python 3.6.2
command: |
python -m venv venv
. venv/bin/activate
pwd
python -V
pip -V
pip install hacking Pillow
python -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
python -m unittest discover test_replays
python -m unittest discover test_s2gs
build:
# working_directory: ~/sc2reader
docker:
- image: python:2.7.13
steps:
- checkout
- run:
name: Flake8 and unittests on Python 2.7.13
command: |
# pip install virtualenv
# virtualenv sc2reader
# pwd
# ls
# cd sc2reader
# source bin/activate
pwd
ls
python -V
pip -V
pip install hacking Pillow
echo "Flake8 round one"
python -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
echo "Flake8 round two"
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
echo "Unittest round one"
python -m unittest discover test_replays
echo "Unittest round two"
python -m unittest discover test_s2gs
echo "Done."
workflows:
version: 2
Python3:
jobs:
build:
working_directory: ~/sc2reader
docker:
- image: python:3.6.2
steps:
- checkout
- run:
name: Flake8 and unittests on Python 3.6.2
command: |
python -m venv venv
. venv/bin/activate
pwd
python -V
pip -V
pip install hacking Pillow
python -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
python -m unittest discover test_replays
python -m unittest discover test_s2gs
Python2:
jobs:
build:
# working_directory: ~/sc2reader
docker:
- image: python:2.7.13
steps:
- checkout
- run:
name: Flake8 and unittests on Python 2.7.13
command: |
# pip install virtualenv
# virtualenv sc2reader
# pwd
# ls
# cd sc2reader
# source bin/activate
pwd
ls
python -V
pip -V
pip install hacking Pillow
echo "Flake8 round one"
python -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
echo "Flake8 round two"
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
echo "Unittest round one"
python -m unittest discover test_replays
echo "Unittest round two"
python -m unittest discover test_s2gs
echo "Done."