-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19425e3
commit d3a2c7f
Showing
9 changed files
with
120 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,82 @@ | ||
language: python | ||
python: 3.8 | ||
|
||
matrix: | ||
include: | ||
# separate sdist and coverage with py36 on linux | ||
- name: "sdist and coverage" | ||
sudo: required | ||
language: python | ||
python: 3.6 | ||
services: docker | ||
script: | ||
- python -m pip install -U setuptools pytest-cov coveralls | ||
- python setup.py sdist -d dist | ||
- python -m pip install -r requirements.txt | ||
- python -m pytest --cov ogs5py --cov-report term-missing -v tests/ | ||
- python -m coveralls | ||
# universal wheel on 64bit Linux with py36 | ||
- name: "py2.py3 wheel" | ||
sudo: required | ||
language: python | ||
python: 3.6 | ||
services: docker | ||
env: CIBW_BUILD="cp36-*64" | ||
# setuptools-scm needs all tags in order to obtain a proper version | ||
git: | ||
depth: false | ||
|
||
env: | ||
global: | ||
# Note: TWINE_PASSWORD is set in Travis settings | ||
- TWINE_USERNAME=geostatframework | ||
- CIBW_BEFORE_BUILD="pip install setuptools" | ||
|
||
script: | ||
# create wheels | ||
- python -m pip install cibuildwheel==1.0.0 | ||
- python -m cibuildwheel --output-dir dist | ||
|
||
after_success: | ||
- python -m pip install twine | ||
- python -m twine upload --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ dist/* | ||
- if [[ $TRAVIS_TAG ]]; then python -m twine upload --verbose --skip-existing dist/*; fi | ||
# skip py27 (EOL) | ||
- CIBW_SKIP="cp27-*" | ||
# update setuptools to latest version | ||
- CIBW_BEFORE_BUILD="pip install -U setuptools" | ||
# testing with cibuildwheel | ||
- CIBW_TEST_REQUIRES=pytest | ||
- CIBW_TEST_COMMAND="pytest -v {project}/tests" | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- info@geostat-framework.org | ||
- info@geostat-framework.org | ||
|
||
before_install: | ||
- | | ||
if [[ "$TRAVIS_OS_NAME" = windows ]]; then | ||
choco install python --version 3.8.0 | ||
export PATH="/c/Python38:/c/Python38/Scripts:$PATH" | ||
# make sure it's on PATH as 'python3' | ||
ln -s /c/Python38/python.exe /c/Python38/python3.exe | ||
fi | ||
install: | ||
- python3 -m pip install cibuildwheel==1.1.0 | ||
|
||
script: | ||
- python3 -m cibuildwheel --output-dir tmp_dist | ||
|
||
stages: | ||
- test | ||
- coverage | ||
- name: deploy | ||
if: (NOT type IN (pull_request)) AND (repo = GeoStat-Framework/ogs5py) | ||
|
||
jobs: | ||
include: | ||
- stage: test | ||
name: Test on Linux | ||
services: docker | ||
- stage: test | ||
name: Test on MacOS | ||
os: osx | ||
language: generic | ||
- stage: test | ||
name: Test on Windows | ||
os: windows | ||
language: shell | ||
|
||
- stage: coverage | ||
name: Coverage on Linux | ||
services: docker | ||
install: python3 -m pip install .[test] coveralls | ||
script: | ||
- python3 -m pytest --cov ogs5py --cov-report term-missing -v tests/ | ||
- python3 -m coveralls | ||
|
||
# Test Deploy source distribution | ||
- stage: deploy | ||
name: Test Deploy | ||
install: python3 -m pip install -U setuptools wheel twine | ||
script: python3 setup.py sdist --formats=gztar bdist_wheel | ||
after_success: | ||
- python3 -m twine upload --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ dist/* | ||
|
||
# Deploy source distribution | ||
- stage: deploy | ||
name: Deploy to PyPI | ||
if: tag IS present | ||
install: python3 -m pip install -U setuptools wheel twine | ||
script: python3 setup.py sdist --formats=gztar bdist_wheel | ||
after_success: python3 -m twine upload --verbose --skip-existing dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# required for readthedocs.org | ||
numpydoc | ||
# https://stackoverflow.com/a/11704396/6696397 | ||
-r ../requirements.txt | ||
-r requirements_doc.txt | ||
-r ../requirements_setup.txt | ||
-r ../requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
numpydoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
numpy>=1.13 | ||
pandas>=0.23.0 | ||
whichcraft | ||
meshio | ||
lxml | ||
vtk | ||
pexpect | ||
numpy>=1.14.5 | ||
pandas>=0.23.2 | ||
meshio>=4.0.3, <5.0 | ||
lxml~=4.0 | ||
pexpect~=4.0 | ||
vtk>=8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
setuptools>=41.0.1 | ||
setuptools_scm>=3.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pytest-cov>=2.8.0 | ||
pytest>=5.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters