Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
93 changes: 66 additions & 27 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,66 @@
machine:
post:
- pyenv global 2.7.12 3.6.2
dependencies:
pre:
- pip install --upgrade pip
- pip3 install --upgrade pip
- pip install hacking
- pip3 install hacking
general:
branches:
ignore:
- ggmaster
- hots
- jonomon
- master
- old_master
test:
override:
- python2.7 -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
- python2.7 -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- python2.7 -m python -m unittest discover test_replays
- python2.7 -m python -m unittest discover test_s2gs
- python3.6 -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
- python3.6 -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- python3.6 -m python -m unittest discover test_replays
- python3.6 -m python -m unittest discover test_s2gs
version: 2
jobs:
Python2:
build:
# working_directory: ~/sc2reader
docker:
- image: python:2.7.13
branches:
ignore:
- ggmaster
- hots
- jonomon
- master
- old_master
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."
Python3:
build:
working_directory: ~/sc2reader
docker:
- image: python:3.6.2
branches:
ignore:
- ggmaster
- hots
- jonomon
- master
- old_master
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
29 changes: 29 additions & 0 deletions circle.yml_old_v1
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
machine:
post:
- pyenv global 2.7 3.5.0
dependencies:
pre:
- pip install --upgrade pip
- pip3 install --upgrade pip
- pip install hacking
- pip3 install hacking
general:
branches:
ignore:
- ggmaster
- hots
- jonomon
- master
- old_master
test:
override:
- python2 -V
- python2 -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
- python2 -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- python2 -m unittest discover test_replays
- python2 -m unittest discover test_s2gs
- python3 -V
- python3 -m flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
- python3 -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- python3 -m unittest discover test_replays
- python3 -m unittest discover test_s2gs