From 7254f3053dc9a4e11988629159d39b832c3c92de Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 18 Jan 2020 07:35:29 -0600 Subject: Add travis CI + tox --- .travis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .travis.yml (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8c6609b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: python +matrix: + include: + - python: 3.3 + env: + TOXENV: py33 + - python: 3.4 + env: + TOXENV: py34 + - python: 3.5 + env: + TOXENV: py35 + - python: 3.6 + env: + TOXENV: py36 + - python: 3.7 + env: + TOXENV: py37 + - python: 3.8 + env: + TOXENV: py38 + +install: pip install --upgrade pip tox + +script: tox \ No newline at end of file -- cgit v1.2.3 From fbb0bc401c54086944057e2fca181646e78ca63d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 18 Jan 2020 07:43:14 -0600 Subject: Remove other py version tests on ci, add lint + test stages --- .travis.yml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 8c6609b..b96bf9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,24 @@ language: python + +stages: + - lint + - test + +jobs: + include: + - stage: lint + install: + - pip install pre-commit + - pre-commit install-hooks + script: + - pre-commit run --all-files + matrix: include: - - python: 3.3 - env: - TOXENV: py33 - - python: 3.4 - env: - TOXENV: py34 - - python: 3.5 - env: - TOXENV: py35 - - python: 3.6 - env: - TOXENV: py36 - - python: 3.7 - env: - TOXENV: py37 - python: 3.8 env: TOXENV: py38 -install: pip install --upgrade pip tox +install: pip install --upgrade pip tox poetry script: tox \ No newline at end of file -- cgit v1.2.3 From 7122db9a63bc4954ad6ccc63b3b9af7b98e984b8 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 10:22:50 -0600 Subject: Only use matrix and change to include lint + test stages --- .travis.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index b96bf9d..a1e0cad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ stages: - lint - test -jobs: +matrix: include: - stage: lint install: @@ -12,13 +12,9 @@ jobs: - pre-commit install-hooks script: - pre-commit run --all-files - -matrix: - include: - - python: 3.8 + - stage: test + python: 3.8 + install: pip install --upgrade pip tox poetry + script: tox env: - TOXENV: py38 - -install: pip install --upgrade pip tox poetry - -script: tox \ No newline at end of file + TOXENV: py38 \ No newline at end of file -- cgit v1.2.3 From fdeaa95bbfd78c7760921bde21a9bc3fcd066d61 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 13:25:54 -0600 Subject: Change ci to use `pre-commit install` instead of install-hooks --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index a1e0cad..22d1d7f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ matrix: - stage: lint install: - pip install pre-commit - - pre-commit install-hooks + - pre-commit install script: - pre-commit run --all-files - stage: test -- cgit v1.2.3 From 1c25a44e87d2a6bf982f3764f026a883292a92e5 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 13:29:07 -0600 Subject: Remove lint phase from ci for now --- .travis.yml | 7 ------- 1 file changed, 7 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 22d1d7f..f535f0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,10 @@ language: python stages: - - lint - test matrix: include: - - stage: lint - install: - - pip install pre-commit - - pre-commit install - script: - - pre-commit run --all-files - stage: test python: 3.8 install: pip install --upgrade pip tox poetry -- cgit v1.2.3 From 149eb0e4d90aad1a252aff58cefc356f018e33a3 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 13:49:16 -0600 Subject: Test configuration for using codecov --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index f535f0c..3fb5db1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,9 @@ matrix: include: - stage: test python: 3.8 - install: pip install --upgrade pip tox poetry + install: pip install --upgrade pip tox poetry codecov script: tox env: - TOXENV: py38 \ No newline at end of file + TOXENV: py38 + after_success: + - codecov \ No newline at end of file -- cgit v1.2.3