Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
5b90a0d9
Commit
5b90a0d9
authored
Oct 22, 2018
by
Paul Ganssle
Committed by
GitHub
Oct 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1514 from benoit-pierre/update_ci_builds
Update CI builds
parents
c2f72efd
604fc1ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
36 deletions
+42
-36
.travis.yml
.travis.yml
+33
-32
appveyor.yml
appveyor.yml
+8
-3
tox.ini
tox.ini
+1
-1
No files found.
.travis.yml
View file @
5b90a0d9
dist
:
trusty
sudo
:
false
language
:
python
python
:
-
&latest_py2
2.7
-
3.4
-
3.5
-
&latest_py3
3.6
-
nightly
-
pypy
-
pypy3
jobs
:
fast_finish
:
true
include
:
-
python
:
*latest_py3
-
&latest_py2
python
:
2.7
-
<<
:
*latest_py2
env
:
LANG=C
-
python
:
*latest_py2
-
python
:
pypy
env
:
DISABLE_COVERAGE=1
# Don't run coverage on pypy (too slow).
-
python
:
pypy3
env
:
DISABLE_COVERAGE=1
-
python
:
3.4
-
python
:
3.5
-
&default_py
python
:
3.6
-
&latest_py3
python
:
3.7
dist
:
xenial
-
<<
:
*latest_py3
env
:
LANG=C
-
stage
:
deploy (to PyPI for tagged commits)
-
python
:
3.8-dev
dist
:
xenial
env
:
DISABLE_COVERAGE=1
# Ignore invalid coverage data.
-
<<
:
*default_py
stage
:
deploy (to PyPI for tagged commits)
if
:
tag IS present
python
:
*latest_py3
install
:
skip
script
:
skip
after_success
:
true
...
...
@@ -39,12 +46,14 @@ jobs:
cache
:
pip
install
:
# ensure we have recent pip/setuptools
-
pip install --upgrade pip setuptools
# ensure we have recent pip/setuptools/wheel
-
pip install --disable-pip-version-check --upgrade pip setuptools wheel
# need tox to get started
-
pip install tox tox-venv
-
pip install
--upgrade
tox tox-venv
# Output the env, to verify behavior
-
pip freeze --all
-
env
# update egg_info based on setup.py in checkout
...
...
@@ -53,28 +62,20 @@ install:
script
:
-
|
( # Run testsuite.
set -ex
case $TRAVIS_PYTHON_VERSION in
pypy*)
# Don't run coverage on pypy (too slow).
tox
;;
*)
if [ -z "$DISABLE_COVERAGE" ]
then
tox -- --cov
;;
esac
else
tox
fi
)
after_success
:
-
|
( # Upload coverage data.
set -ex
case $TRAVIS_PYTHON_VERSION in
pypy*)
;;
*)
if [ -z "$DISABLE_COVERAGE" ]
then
export TRAVIS_JOB_NAME="${TRAVIS_PYTHON_VERSION} (LANG=$LANG)" CODECOV_ENV=TRAVIS_JOB_NAME
tox -e coverage,codecov
;;
esac
fi
)
appveyor.yml
View file @
5b90a0d9
clone_depth
:
50
environment
:
APPVEYOR
:
True
...
...
@@ -21,9 +23,12 @@ cache:
-
'
%LOCALAPPDATA%\pip\Cache'
test_script
:
-
"
python
bootstrap.py"
-
"
python
-m
pip
install
tox"
-
"
tox
--
--cov"
-
python --version
-
python -m pip install --disable-pip-version-check --upgrade pip setuptools wheel
-
pip install --upgrade tox tox-venv
-
pip freeze --all
-
python bootstrap.py
-
tox -- --cov
after_test
:
-
tox -e coverage,codecov
...
...
tox.ini
View file @
5b90a0d9
...
...
@@ -37,7 +37,7 @@ commands=coverage erase
description
=
[Only run on CI]: Upload coverage data to codecov
deps
=
codecov
skip_install
=
True
commands
=
codecov --file {toxworkdir}/coverage.xml
commands
=
codecov -
X gcov -
-file {toxworkdir}/coverage.xml
[testenv:docs]
deps
=
-r{toxinidir}/docs/requirements.txt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment