diff --git a/.readthedocs.yml b/.readthedocs.yml index 4cb0b196..f5b79843 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -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: . \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2215a379..00000000 --- a/.travis.yml +++ /dev/null @@ -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= diff --git a/requirements.travis.txt b/requirements.txt similarity index 100% rename from requirements.travis.txt rename to requirements.txt diff --git a/travis/before_script.sh b/travis/before_script.sh deleted file mode 100755 index 7e8bb56c..00000000 --- a/travis/before_script.sh +++ /dev/null @@ -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 diff --git a/travis/install.sh b/travis/install.sh deleted file mode 100755 index bfba99e4..00000000 --- a/travis/install.sh +++ /dev/null @@ -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 diff --git a/travis/script.sh b/travis/script.sh deleted file mode 100755 index ff0eb1fe..00000000 --- a/travis/script.sh +++ /dev/null @@ -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