GPy/.travis.yml
Eric Kalosa-Kenyon 55c2d66c99
updated osx to macOS 10.15.7, JDK to 14.0.2, and XCode to Xcode 12.2 (#904)
The CI  was broken. This commit fixes the CI. The root cause is reported in more detail in issue #905.

In short, the default macOS version (10.13, see the TravisCI docs) used in TravisCI isn't supported by brew which caused the brew install pandoc in the download_miniconda.sh pre-install script to hang and time out the build. It failed even on inert PRs (adding a line to README, e.g.). Now, with the updated macOS version (from 10.13 to 10.15), brew is supported and the brew install pandoc command succeeds and allows the remainder of the CI build and test sequence to succeed.
2021-05-11 09:37:07 -07:00

74 lines
1.5 KiB
YAML

sudo: false
osx_image: xcode12.2
os:
- osx
- linux
addons:
apt_packages:
- pandoc
#cache:
# directories:
# - "$HOME/download/"
# - "$HOME/install/"
env:
- PYTHON_VERSION=3.5
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7
- PYTHON_VERSION=3.8
- PYTHON_VERSION=3.9
before_install:
- wget https://github.com/mzwiessele/travis_scripts/raw/master/download_miniconda.sh
- wget https://github.com/mzwiessele/travis_scripts/raw/master/install_retry.sh
- source download_miniconda.sh
- echo $PATH
install:
- echo $PATH
- source install_retry.sh
- if [[ "$TRAVIS_OS_NAME" == "osx" ]];
then
conda install --yes pandoc;
fi;
- pip install codecov
- pip install coveralls
- pip install pypandoc
- pip install git+git://github.com/BRML/climin.git
- pip install autograd
- pip install nose-show-skipped
- python setup.py develop
script:
- coverage run travis_tests.py
after_success:
- codecov
- coveralls
before_deploy:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then
export DIST='sdist bdist_rpm bdist_dumb';
elif [[ "$TRAVIS_OS_NAME" == "osx" ]];
then
export DIST='bdist_wheel';
fi;
deploy:
provider: pypi
user: maxz
password:
secure: "vMEOlP7DQhFJ7hQAKtKC5hrJXFl5BkUt4nXdosWWiw//Kg8E+PPLg88XPI2gqIosir9wwgtbSBBbbwCxkM6uxRNMpoNR8Ixyv9fmSXp4rLl7bbBY768W7IRXKIBjpuEy2brQjoT+CwDDSzUkckHvuUjJDNRvUv8ab4P/qYO1LG4="
on:
branch: deploy
edge:
branch: v1.8.45
distributions: $DIST
skip_existing: true
skip_cleanup: true
skip_upload_docs: false