From 52edfa0808fcad04bd8a65e1147fbce6461207df Mon Sep 17 00:00:00 2001 From: "Adam Ginsburg (keflavich)" Date: Fri, 27 Apr 2018 16:22:42 -0600 Subject: [PATCH 1/4] attempt to add a deploy phase --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index 266d1e98dc..50cb556b7d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,8 @@ stages: - name: Cron tests if: type = cron - name: Tests with other Python/Numpy versions, remote data + - name: deploy + if: branch = master env: @@ -148,6 +150,13 @@ matrix: env: MAIN_CMD='pycodestyle astroquery --count' SETUP_CMD='' EVENT_TYPE='push pull_request' +deploy: + provider: pypi + user: "keflavich" + password: + secure: NvwZewQEwW+JadyF1ChzaKvQHLtFQ32BRSpw1Jx/IuE3aZS2QMp3Zdm9AjFJEyoI5BTe2WCdd8UIXusceAN+uCjgdv5s4nSHNjdIo9c+rwRh1mzD62kDVkNZzyTHQ9tBRydOUrQhllraP2AmFfNpMDWOnGeJDZL7NdF+F1pg7Is= + + install: - git clone git://github.com/astropy/ci-helpers.git - source ci-helpers/travis/setup_conda.sh From dbd9ca7c095d18f3ce755184e450bd96096e5ff9 Mon Sep 17 00:00:00 2001 From: "Adam Ginsburg (keflavich)" Date: Fri, 27 Apr 2018 16:26:50 -0600 Subject: [PATCH 2/4] try to move deployment into matrix --- .travis.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 50cb556b7d..595df10c9e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -150,11 +150,14 @@ matrix: env: MAIN_CMD='pycodestyle astroquery --count' SETUP_CMD='' EVENT_TYPE='push pull_request' -deploy: - provider: pypi - user: "keflavich" - password: - secure: NvwZewQEwW+JadyF1ChzaKvQHLtFQ32BRSpw1Jx/IuE3aZS2QMp3Zdm9AjFJEyoI5BTe2WCdd8UIXusceAN+uCjgdv5s4nSHNjdIo9c+rwRh1mzD62kDVkNZzyTHQ9tBRydOUrQhllraP2AmFfNpMDWOnGeJDZL7NdF+F1pg7Is= + - stage: deploy + deploy: + provider: pypi + user: "keflavich" + password: + secure: NvwZewQEwW+JadyF1ChzaKvQHLtFQ32BRSpw1Jx/IuE3aZS2QMp3Zdm9AjFJEyoI5BTe2WCdd8UIXusceAN+uCjgdv5s4nSHNjdIo9c+rwRh1mzD62kDVkNZzyTHQ9tBRydOUrQhllraP2AmFfNpMDWOnGeJDZL7NdF+F1pg7Is= + on: + branch: master install: From 3b4363266327b76f341655861e46b26ae5c86a8f Mon Sep 17 00:00:00 2001 From: "Adam Ginsburg (keflavich)" Date: Fri, 4 May 2018 10:13:31 -0600 Subject: [PATCH 3/4] switch to astroquery as deployment user --- .travis.yml | 260 ++++++++++++++++++++-------------------------------- 1 file changed, 97 insertions(+), 163 deletions(-) diff --git a/.travis.yml b/.travis.yml index 595df10c9e..5b29454371 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,174 +1,108 @@ -# We set the language to c because python isn't supported on the MacOS X nodes -# on Travis. However, the language ends up being irrelevant anyway, since we -# install Python ourselves using conda. language: c - os: - - linux - -# Setting sudo to false opts in to Travis-CI container-based builds. +- linux sudo: false - -# The apt packages below are needed for sphinx builds, which can no longer -# be installed with sudo apt-get. addons: - apt: - packages: - - graphviz - - texlive-latex-extra - - dvipng - + apt: + packages: + - graphviz + - texlive-latex-extra + - dvipng stage: Initial tests - stages: - - name: Initial tests - - name: Test docs, astropy dev, and without optional dependencies - - name: Cron tests - if: type = cron - - name: Tests with other Python/Numpy versions, remote data - - name: deploy - if: branch = master - - +- name: Initial tests +- name: Test docs, astropy dev, and without optional dependencies +- name: Cron tests + if: type = cron +- name: Tests with other Python/Numpy versions, remote data +- name: deploy + if: branch = master env: - global: - # The following versions are the 'default' for tests, unless - # overridden underneath. They are defined here in order to save having - # to repeat them for all configurations. - - PYTHON_VERSION=3.6 - - MAIN_CMD='python setup.py' - - NUMPY_VERSION=stable - - ASTROPY_VERSION=stable - - CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring aplpy matplotlib pyregion jinja2 flask' - # pandas is used as a workaround of an astropy issue, sometimes it's required for the remote tests - - CONDA_DEPENDENCIES_REMOTE='requests beautifulsoup4 html5lib keyring aplpy matplotlib pyregion jinja2 flask pandas' - - PIP_DEPENDENCIES='https://github.com/keflavich/httpbin/archive/master.zip' - - HTTP_BIN_CMD="import httpbin; httpbin.app.run()" - - RUN_HTTPBIN='python -c "$HTTP_BIN_CMD" & ACTIVE_HTTPBIN=True' - - SETUP_CMD='test' - - CONDA_CHANNELS='astropy-ci-extras astropy' - - EVENT_TYPE='pull_request push' - - ASTROPY_USE_SYSTEM_PYTEST=1 - - SPHINX_VERSION='>=1.6' - - DEBUG=true - - matrix: - - PYTHON_VERSION=2.7 SETUP_CMD='egg_info' - - PYTHON_VERSION=3.4 SETUP_CMD='egg_info' - - PYTHON_VERSION=3.5 SETUP_CMD='egg_info' - - PYTHON_VERSION=3.6 SETUP_CMD='egg_info' - + global: + - PYTHON_VERSION=3.6 + - MAIN_CMD='python setup.py' + - NUMPY_VERSION=stable + - ASTROPY_VERSION=stable + - CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring aplpy matplotlib + pyregion jinja2 flask' + - CONDA_DEPENDENCIES_REMOTE='requests beautifulsoup4 html5lib keyring aplpy matplotlib + pyregion jinja2 flask pandas' + - PIP_DEPENDENCIES='https://github.com/keflavich/httpbin/archive/master.zip' + - HTTP_BIN_CMD="import httpbin; httpbin.app.run()" + - RUN_HTTPBIN='python -c "$HTTP_BIN_CMD" & ACTIVE_HTTPBIN=True' + - SETUP_CMD='test' + - CONDA_CHANNELS='astropy-ci-extras astropy' + - EVENT_TYPE='pull_request push' + - ASTROPY_USE_SYSTEM_PYTEST=1 + - SPHINX_VERSION='>=1.6' + - DEBUG=true + matrix: + - PYTHON_VERSION=2.7 SETUP_CMD='egg_info' + - PYTHON_VERSION=3.4 SETUP_CMD='egg_info' + - PYTHON_VERSION=3.5 SETUP_CMD='egg_info' + - PYTHON_VERSION=3.6 SETUP_CMD='egg_info' matrix: - - # Don't wait for allowed failures - fast_finish: true - - include: - # Testing remote-data when running builds on master or with - # cron. Starting these early as they take much longer to run. Using - # both short and long versions for remote-data to help test the - # astropy test command. - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: EVENT_TYPE='push cron' DEBUG=True ASTROPY_VERSION=dev - SETUP_CMD='test -R -V' CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_REMOTE - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: EVENT_TYPE='push cron' PYTHON_VERSION=2.7 - SETUP_CMD='test --remote-data -V' CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_REMOTE KEYRING_VERSION='<12.0' - - # No need to run it from cron - # Try MacOS X - - os: osx - stage: Cron tests - env: SETUP_CMD='test' CONDA_CHANNELS='conda-forge astropy-ci-extras astropy' - EVENT_TYPE='cron' - - - os: linux - env: SETUP_CMD='test --coverage' PIP_DEPENDENCIES="`echo $PIP_DEPENDENCIES codecov`" - - # Check for sphinx doc build warnings - we do this first because it - # may run for a long time - - os: linux - stage: Test docs, astropy dev, and without optional dependencies - env: SETUP_CMD='build_docs -w' - - # Try all python versions and Numpy versions. Since we can assume that - # the Numpy developers have taken care of testing Numpy with different - # versions of Python, we can vary Python and Numpy versions at the same - # time. We don't expect any of these to fail in master for cron jobs. - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.9 KEYRING_VERSION='<12.0' - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: PYTHON_VERSION=3.4 NUMPY_VERSION=1.10 - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: PYTHON_VERSION=3.5.5 NUMPY_VERSION=1.11 KEYRING_VERSION='<12.0' - - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: NUMPY_VERSION=1.12 ASTROPY_VERSION=1.3 PYTEST_VERSION='<3.2' - - # Now try Astropy dev and LTS vesions with the latest Python. - # The dev version only need to be tested on PRs as there are pull - # and cron builds above already. - - os: linux - stage: Test docs, astropy dev, and without optional dependencies - env: ASTROPY_VERSION=development EVENT_TYPE='pull_request' - - # Astropy stable and LTS currently the same, enable these back when 3.0 is out - # - os: linux - # stage: Test docs, astropy dev, and without optional dependencies - # env: PYTHON_VERSION=2.7 ASTROPY_VERSION=lts - # EVENT_TYPE='push pull_request' PYTEST_VERSION=2.7 - ## Need to test with python3.5 for now as py3.6 requires pytest3 (due - ## to the usage of unittest) that is incompatible with LTS - # - os: linux - # stage: Test docs, astropy dev, and without optional dependencies - # env: PYTHON_VERSION=3.5 ASTROPY_VERSION=lts - # EVENT_TYPE='push pull_request' PYTEST_VERSION=2.7 - - # Try with optional dependencies disabled - - os: linux - stage: Test docs, astropy dev, and without optional dependencies - env: PYTHON_VERSION=2.7 KEYRING_VERSION='<12.0' - CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring' - - os: linux - stage: Test docs, astropy dev, and without optional dependencies - env: CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring' - - # Try numpy pre-release version, this runs only when a pre-release - # is available on pypi. - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: NUMPY_VERSION=prerelease DEBUG=True EVENT_TYPE='push pull_request cron' - - # Do a PEP8 test with pycodestyle - - os: linux - env: MAIN_CMD='pycodestyle astroquery --count' - SETUP_CMD='' EVENT_TYPE='push pull_request' - - - stage: deploy - deploy: - provider: pypi - user: "keflavich" - password: - secure: NvwZewQEwW+JadyF1ChzaKvQHLtFQ32BRSpw1Jx/IuE3aZS2QMp3Zdm9AjFJEyoI5BTe2WCdd8UIXusceAN+uCjgdv5s4nSHNjdIo9c+rwRh1mzD62kDVkNZzyTHQ9tBRydOUrQhllraP2AmFfNpMDWOnGeJDZL7NdF+F1pg7Is= - on: - branch: master - - + fast_finish: true + include: + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: EVENT_TYPE='push cron' DEBUG=True ASTROPY_VERSION=dev SETUP_CMD='test -R + -V' CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_REMOTE + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: EVENT_TYPE='push cron' PYTHON_VERSION=2.7 SETUP_CMD='test --remote-data -V' + CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_REMOTE KEYRING_VERSION='<12.0' + - os: osx + stage: Cron tests + env: SETUP_CMD='test' CONDA_CHANNELS='conda-forge astropy-ci-extras astropy' EVENT_TYPE='cron' + - os: linux + env: SETUP_CMD='test --coverage' PIP_DEPENDENCIES="`echo $PIP_DEPENDENCIES codecov`" + - os: linux + stage: Test docs, astropy dev, and without optional dependencies + env: SETUP_CMD='build_docs -w' + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.9 KEYRING_VERSION='<12.0' + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: PYTHON_VERSION=3.4 NUMPY_VERSION=1.10 + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: PYTHON_VERSION=3.5.5 NUMPY_VERSION=1.11 KEYRING_VERSION='<12.0' + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: NUMPY_VERSION=1.12 ASTROPY_VERSION=1.3 PYTEST_VERSION='<3.2' + - os: linux + stage: Test docs, astropy dev, and without optional dependencies + env: ASTROPY_VERSION=development EVENT_TYPE='pull_request' + - os: linux + stage: Test docs, astropy dev, and without optional dependencies + env: PYTHON_VERSION=2.7 KEYRING_VERSION='<12.0' CONDA_DEPENDENCIES='requests + beautifulsoup4 html5lib keyring' + - os: linux + stage: Test docs, astropy dev, and without optional dependencies + env: CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring' + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: NUMPY_VERSION=prerelease DEBUG=True EVENT_TYPE='push pull_request cron' + - os: linux + env: MAIN_CMD='pycodestyle astroquery --count' SETUP_CMD='' EVENT_TYPE='push pull_request' + - stage: deploy + deploy: + provider: pypi + user: astroquery + password: + secure: NvwZewQEwW+JadyF1ChzaKvQHLtFQ32BRSpw1Jx/IuE3aZS2QMp3Zdm9AjFJEyoI5BTe2WCdd8UIXusceAN+uCjgdv5s4nSHNjdIo9c+rwRh1mzD62kDVkNZzyTHQ9tBRydOUrQhllraP2AmFfNpMDWOnGeJDZL7NdF+F1pg7Is= + on: + branch: master install: - - git clone git://github.com/astropy/ci-helpers.git - - source ci-helpers/travis/setup_conda.sh - +- git clone git://github.com/astropy/ci-helpers.git +- source ci-helpers/travis/setup_conda.sh script: - - $RUN_HTTPBIN - - $MAIN_CMD $SETUP_CMD - +- $RUN_HTTPBIN +- $MAIN_CMD $SETUP_CMD after_success: - - if [[ $SETUP_CMD == 'test --coverage' ]]; then - codecov; - fi +- if [[ $SETUP_CMD == 'test --coverage' ]]; then codecov; fi +deploy: + password: + secure: igbQWSv2MhYw8PuvMl+JsU0JeMTETyoAY583lDwBO6VYMt0G6SNXQOoUJ+nhrLeU7LkSd4FAnvkFO+AbIzuCYJyoKcd85ZBVzamnselmU/7xcV6Cp8sIgokjcCI7Ur9IWnrRxTbLP76wOuqmcbRYyzPIihGzGFA41Z7xRSm+hqs= From 372248e2c6cb9a39c29fa414faefe0a0d68b1ec2 Mon Sep 17 00:00:00 2001 From: "Adam Ginsburg (keflavich)" Date: Fri, 4 May 2018 12:13:17 -0600 Subject: [PATCH 4/4] undo bad linting by the travis cli --- .travis.yml | 257 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 163 insertions(+), 94 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5b29454371..7c999b2a0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,108 +1,177 @@ +# We set the language to c because python isn't supported on the MacOS X nodes +# on Travis. However, the language ends up being irrelevant anyway, since we +# install Python ourselves using conda. language: c + os: -- linux + - linux + +# Setting sudo to false opts in to Travis-CI container-based builds. sudo: false + +# The apt packages below are needed for sphinx builds, which can no longer +# be installed with sudo apt-get. addons: - apt: - packages: - - graphviz - - texlive-latex-extra - - dvipng + apt: + packages: + - graphviz + - texlive-latex-extra + - dvipng + stage: Initial tests + stages: -- name: Initial tests -- name: Test docs, astropy dev, and without optional dependencies -- name: Cron tests - if: type = cron -- name: Tests with other Python/Numpy versions, remote data -- name: deploy - if: branch = master + - name: Initial tests + - name: Test docs, astropy dev, and without optional dependencies + - name: Cron tests + if: type = cron + - name: Tests with other Python/Numpy versions, remote data + - name: deploy + if: branch = master + + env: - global: - - PYTHON_VERSION=3.6 - - MAIN_CMD='python setup.py' - - NUMPY_VERSION=stable - - ASTROPY_VERSION=stable - - CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring aplpy matplotlib - pyregion jinja2 flask' - - CONDA_DEPENDENCIES_REMOTE='requests beautifulsoup4 html5lib keyring aplpy matplotlib - pyregion jinja2 flask pandas' - - PIP_DEPENDENCIES='https://github.com/keflavich/httpbin/archive/master.zip' - - HTTP_BIN_CMD="import httpbin; httpbin.app.run()" - - RUN_HTTPBIN='python -c "$HTTP_BIN_CMD" & ACTIVE_HTTPBIN=True' - - SETUP_CMD='test' - - CONDA_CHANNELS='astropy-ci-extras astropy' - - EVENT_TYPE='pull_request push' - - ASTROPY_USE_SYSTEM_PYTEST=1 - - SPHINX_VERSION='>=1.6' - - DEBUG=true - matrix: - - PYTHON_VERSION=2.7 SETUP_CMD='egg_info' - - PYTHON_VERSION=3.4 SETUP_CMD='egg_info' - - PYTHON_VERSION=3.5 SETUP_CMD='egg_info' - - PYTHON_VERSION=3.6 SETUP_CMD='egg_info' + global: + # The following versions are the 'default' for tests, unless + # overridden underneath. They are defined here in order to save having + # to repeat them for all configurations. + - PYTHON_VERSION=3.6 + - MAIN_CMD='python setup.py' + - NUMPY_VERSION=stable + - ASTROPY_VERSION=stable + - CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring aplpy matplotlib pyregion jinja2 flask' + # pandas is used as a workaround of an astropy issue, sometimes it's required for the remote tests + - CONDA_DEPENDENCIES_REMOTE='requests beautifulsoup4 html5lib keyring aplpy matplotlib pyregion jinja2 flask pandas' + - PIP_DEPENDENCIES='https://github.com/keflavich/httpbin/archive/master.zip' + - HTTP_BIN_CMD="import httpbin; httpbin.app.run()" + - RUN_HTTPBIN='python -c "$HTTP_BIN_CMD" & ACTIVE_HTTPBIN=True' + - SETUP_CMD='test' + - CONDA_CHANNELS='astropy-ci-extras astropy' + - EVENT_TYPE='pull_request push' + - ASTROPY_USE_SYSTEM_PYTEST=1 + - SPHINX_VERSION='>=1.6' + - DEBUG=true + + matrix: + - PYTHON_VERSION=2.7 SETUP_CMD='egg_info' + - PYTHON_VERSION=3.4 SETUP_CMD='egg_info' + - PYTHON_VERSION=3.5 SETUP_CMD='egg_info' + - PYTHON_VERSION=3.6 SETUP_CMD='egg_info' + matrix: - fast_finish: true - include: - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: EVENT_TYPE='push cron' DEBUG=True ASTROPY_VERSION=dev SETUP_CMD='test -R - -V' CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_REMOTE - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: EVENT_TYPE='push cron' PYTHON_VERSION=2.7 SETUP_CMD='test --remote-data -V' - CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_REMOTE KEYRING_VERSION='<12.0' - - os: osx - stage: Cron tests - env: SETUP_CMD='test' CONDA_CHANNELS='conda-forge astropy-ci-extras astropy' EVENT_TYPE='cron' - - os: linux - env: SETUP_CMD='test --coverage' PIP_DEPENDENCIES="`echo $PIP_DEPENDENCIES codecov`" - - os: linux - stage: Test docs, astropy dev, and without optional dependencies - env: SETUP_CMD='build_docs -w' - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.9 KEYRING_VERSION='<12.0' - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: PYTHON_VERSION=3.4 NUMPY_VERSION=1.10 - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: PYTHON_VERSION=3.5.5 NUMPY_VERSION=1.11 KEYRING_VERSION='<12.0' - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: NUMPY_VERSION=1.12 ASTROPY_VERSION=1.3 PYTEST_VERSION='<3.2' - - os: linux - stage: Test docs, astropy dev, and without optional dependencies - env: ASTROPY_VERSION=development EVENT_TYPE='pull_request' - - os: linux - stage: Test docs, astropy dev, and without optional dependencies - env: PYTHON_VERSION=2.7 KEYRING_VERSION='<12.0' CONDA_DEPENDENCIES='requests - beautifulsoup4 html5lib keyring' - - os: linux - stage: Test docs, astropy dev, and without optional dependencies - env: CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring' - - os: linux - stage: Tests with other Python/Numpy versions, remote data - env: NUMPY_VERSION=prerelease DEBUG=True EVENT_TYPE='push pull_request cron' - - os: linux - env: MAIN_CMD='pycodestyle astroquery --count' SETUP_CMD='' EVENT_TYPE='push pull_request' - - stage: deploy - deploy: - provider: pypi - user: astroquery - password: - secure: NvwZewQEwW+JadyF1ChzaKvQHLtFQ32BRSpw1Jx/IuE3aZS2QMp3Zdm9AjFJEyoI5BTe2WCdd8UIXusceAN+uCjgdv5s4nSHNjdIo9c+rwRh1mzD62kDVkNZzyTHQ9tBRydOUrQhllraP2AmFfNpMDWOnGeJDZL7NdF+F1pg7Is= - on: - branch: master + + # Don't wait for allowed failures + fast_finish: true + + include: + # Testing remote-data when running builds on master or with + # cron. Starting these early as they take much longer to run. Using + # both short and long versions for remote-data to help test the + # astropy test command. + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: EVENT_TYPE='push cron' DEBUG=True ASTROPY_VERSION=dev + SETUP_CMD='test -R -V' CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_REMOTE + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: EVENT_TYPE='push cron' PYTHON_VERSION=2.7 + SETUP_CMD='test --remote-data -V' CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_REMOTE KEYRING_VERSION='<12.0' + + # No need to run it from cron + # Try MacOS X + - os: osx + stage: Cron tests + env: SETUP_CMD='test' CONDA_CHANNELS='conda-forge astropy-ci-extras astropy' + EVENT_TYPE='cron' + + - os: linux + env: SETUP_CMD='test --coverage' PIP_DEPENDENCIES="`echo $PIP_DEPENDENCIES codecov`" + + # Check for sphinx doc build warnings - we do this first because it + # may run for a long time + - os: linux + stage: Test docs, astropy dev, and without optional dependencies + env: SETUP_CMD='build_docs -w' + + # Try all python versions and Numpy versions. Since we can assume that + # the Numpy developers have taken care of testing Numpy with different + # versions of Python, we can vary Python and Numpy versions at the same + # time. We don't expect any of these to fail in master for cron jobs. + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.9 KEYRING_VERSION='<12.0' + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: PYTHON_VERSION=3.4 NUMPY_VERSION=1.10 + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: PYTHON_VERSION=3.5.5 NUMPY_VERSION=1.11 KEYRING_VERSION='<12.0' + + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: NUMPY_VERSION=1.12 ASTROPY_VERSION=1.3 PYTEST_VERSION='<3.2' + + # Now try Astropy dev and LTS vesions with the latest Python. + # The dev version only need to be tested on PRs as there are pull + # and cron builds above already. + - os: linux + stage: Test docs, astropy dev, and without optional dependencies + env: ASTROPY_VERSION=development EVENT_TYPE='pull_request' + + # Astropy stable and LTS currently the same, enable these back when 3.0 is out + # - os: linux + # stage: Test docs, astropy dev, and without optional dependencies + # env: PYTHON_VERSION=2.7 ASTROPY_VERSION=lts + # EVENT_TYPE='push pull_request' PYTEST_VERSION=2.7 + ## Need to test with python3.5 for now as py3.6 requires pytest3 (due + ## to the usage of unittest) that is incompatible with LTS + # - os: linux + # stage: Test docs, astropy dev, and without optional dependencies + # env: PYTHON_VERSION=3.5 ASTROPY_VERSION=lts + # EVENT_TYPE='push pull_request' PYTEST_VERSION=2.7 + + # Try with optional dependencies disabled + - os: linux + stage: Test docs, astropy dev, and without optional dependencies + env: PYTHON_VERSION=2.7 KEYRING_VERSION='<12.0' + CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring' + - os: linux + stage: Test docs, astropy dev, and without optional dependencies + env: CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring' + + # Try numpy pre-release version, this runs only when a pre-release + # is available on pypi. + - os: linux + stage: Tests with other Python/Numpy versions, remote data + env: NUMPY_VERSION=prerelease DEBUG=True EVENT_TYPE='push pull_request cron' + + # Do a PEP8 test with pycodestyle + - os: linux + env: MAIN_CMD='pycodestyle astroquery --count' + SETUP_CMD='' EVENT_TYPE='push pull_request' + + - stage: deploy + deploy: + provider: pypi + user: astroquery + password: + secure: NvwZewQEwW+JadyF1ChzaKvQHLtFQ32BRSpw1Jx/IuE3aZS2QMp3Zdm9AjFJEyoI5BTe2WCdd8UIXusceAN+uCjgdv5s4nSHNjdIo9c+rwRh1mzD62kDVkNZzyTHQ9tBRydOUrQhllraP2AmFfNpMDWOnGeJDZL7NdF+F1pg7Is= + on: + branch: master + install: -- git clone git://github.com/astropy/ci-helpers.git -- source ci-helpers/travis/setup_conda.sh + - git clone git://github.com/astropy/ci-helpers.git + - source ci-helpers/travis/setup_conda.sh + script: -- $RUN_HTTPBIN -- $MAIN_CMD $SETUP_CMD + - $RUN_HTTPBIN + - $MAIN_CMD $SETUP_CMD + after_success: -- if [[ $SETUP_CMD == 'test --coverage' ]]; then codecov; fi + - if [[ $SETUP_CMD == 'test --coverage' ]]; then + codecov; + fi + deploy: password: secure: igbQWSv2MhYw8PuvMl+JsU0JeMTETyoAY583lDwBO6VYMt0G6SNXQOoUJ+nhrLeU7LkSd4FAnvkFO+AbIzuCYJyoKcd85ZBVzamnselmU/7xcV6Cp8sIgokjcCI7Ur9IWnrRxTbLP76wOuqmcbRYyzPIihGzGFA41Z7xRSm+hqs=