ci(travis): remove travis from CI chain (#1013)

develop
jdhughes-usgs 2020-10-27 15:24:02 -05:00 committed by GitHub
parent cdd8376a6f
commit 23bdf37043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1 additions and 112 deletions

View File

@ -20,7 +20,7 @@ formats: all
python:
version: 3.7
install:
- requirements: requirements.travis.txt
- requirements: requirements.txt
- requirements: .docs/requirements.rtd.txt
- method: pip
path: .

View File

@ -1,46 +0,0 @@
language: python
os: linux
dist: xenial
compiler: gcc
services:
- xvfb
matrix:
include:
- env: RUN_TYPE=misc
python: 3.7
- env: RUN_TYPE=test
python: 3.5
- env: RUN_TYPE=test
python: 3.6
- env: RUN_TYPE=test
python: 3.7
- env: RUN_TYPE=test
python: 3.8
# allow_failures:
# - env: RUN_TYPE=test
# python: 3.8
cache:
pip: true
directories:
- "$HOME/.cache/pip"
- "$HOME/.local"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libhdf5-serial-dev
- netcdf-bin
- libnetcdf-dev
- gdal-bin
- libgdal-dev
env:
global:
- PYTHONPATH=$PYTHONPATH:.
install: ./travis/install.sh
before_script: ./travis/before_script.sh
script: ./travis/script.sh
after_success: coveralls
notifications:
slack:
secure: mwy5srgrEc1TWc5x0sOTGxVoSWSHYj8afkVyGtgVonI4b+816BIW0qLy7SIX46vtR+oexXoAWsYXmgNwItFWIDhP6uNN1o5yyVIU7WI68Y3k8KpdfNC90d2HIH3TIxdIR1ezrATOWDAGoG3lnprAI6I3zVVUga4EwUMnwc+/GoK3qluxp/0yEK114n2j7LuAXOzCgyuaaelPLrDwTo8ZIWLKaV3yg5oM/mYpP2PGbYsnvs+FpAfMN9GkEGzgDgATNs+O455s1Dx1cdxtgJVw91b74Fc+eOlk4Ywrdg6PcQYeHFLehSxXDkCkLYSjktDRvX07Dlg9CG3nr5y1RBB2p33L73A1kLUjEfvZB9yaYm3Pow9PxUDJcb//GAQauWiQZQw84mfHVqer3HBA8S5AwcWMHPUo2/9jfkyT7+tOAghUYLt2LdKnTXrf8ZFSG1NN4aR8RMUyxHFaXgVrCbWy35wl59fgoUY3q6IzNVjgobkJGeapVOeqiut2UHB6b6lNDEGoGr9dLcpB09IYEIDpVq5bqnflC3ZuihlzQS/k/EW/L2StFN3xIg7RumuEwvkhsOHxoeWcbfmQreGBwWrp2jP5Sl8q8Ymu2WcO4F6r3sC+9VaK8nEWR/CHurnnBsGqH6Inng00Y6cRp4gP1R9zIJNpxz51spZbspFAEzMpst4=

View File

@ -1,22 +0,0 @@
#!/bin/bash
set -e
if [[ ! -d "$HOME/.local/bin" ]]; then
mkdir "$HOME/.local/bin"
fi
echo "PATH=$PATH"
echo "PYTHONPATH=$PYTHONPATH"
echo "Showing version information..."
python -c "import sys; print('python sys.path: {}'.format(sys.path))"
python -c "import os; is_travis = 'TRAVIS' in os.environ; print('TRAVIS {}'.format(is_travis))"
python -c "import flopy; print('flopy: {}'.format(flopy.__version__))"
python -c "import numpy; print('numpy: {}'.format(numpy.version.version))"
python -c "import pandas as pd; print('pandas: {}'.format(pd.__version__))"
python -c "import requests; print('requests: {}'.format(requests.__version__))"
python -c "import shapefile; print('pyshp: {}'.format(shapefile.__version__))"
if [ "${RUN_TYPE}" = "misc" ]; then
echo "jupyter: $(jupyter --version); $(jupyter --runtime-dir)"
pylint --version
fi
nosetests --version

View File

@ -1,15 +0,0 @@
#!/bin/bash
set -e
echo "Installing pip for Python ${TRAVIS_PYTHON_VERSION} ${RUN_TYPE} run"
pip install --upgrade pip
pip install -r requirements.travis.txt
pip install --no-binary rasterio rasterio
pip install --upgrade numpy
if [ "${RUN_TYPE}" = "misc" ]; then
pip install flake8 "pylint!=2.5.0" pylint-exit
pip install jupyter jupytext
fi
pip install https://github.com/modflowpy/pymake/zipball/master
pip install shapely[vectorize]
pip install coveralls nose-timer

View File

@ -1,28 +0,0 @@
#!/bin/bash
set -e
echo "Downloading executables..."
python ./autotest/get_exes.py
if [ "${RUN_TYPE}" = "test" ]; then
echo "Running flopy autotest suite..."
nosetests -v --with-id --with-timer -w ./autotest \
--with-coverage --cover-package=flopy
elif [ "${RUN_TYPE}" = "misc" ]; then
echo "Checking Python code with flake8..."
flake8 --exit-zero
echo "Checking Python code with pylint..."
pylint --jobs=2 --errors-only ./flopy || pylint-exit $?
if [ $? -ne 0 ]; then
echo "An error occurred while running pylint." >&2
exit 1
fi
echo "Running notebook autotest suite..."
nosetests -v autotest_scripts.py --with-id --with-timer -w ./autotest \
--with-coverage --cover-package=flopy
nosetests -v autotest_notebooks.py --with-id --with-timer -w ./autotest \
--with-coverage --cover-package=flopy
else
echo "Unhandled RUN_TYPE=${RUN_TYPE}" >&2
exit 1
fi