Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up travis.yml file #404

Merged
merged 4 commits into from
Apr 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# We use miniconda for Python so don't need any Python specific tools
language: generic

# Use the container builds so we don't need sudo privileges
sudo: false

# Only build pushes to the master branch and tags. This avoids the double
# builds than happen when working on a branch instead of a fork.
branches:
Expand All @@ -30,7 +27,7 @@ env:
# These variables control which actions are performed in a build
- DEPLOY=false

matrix:
jobs:
# Build under the following configurations
include:
- name: "Linux - Python 3.8"
Expand Down Expand Up @@ -83,14 +80,14 @@ deploy:
# Push the built HTML in doc/_build/html to the gh-pages branch
- provider: script
script: continuous-integration/travis/deploy-gh-pages.sh
weiji14 marked this conversation as resolved.
Show resolved Hide resolved
skip_cleanup: true
cleanup: false
on:
branch: master
condition: '$DEPLOY == "true"'
# Push HTML when building tags as well
- provider: script
script: continuous-integration/travis/deploy-gh-pages.sh
skip_cleanup: true
cleanup: false
on:
tags: true
condition: '$DEPLOY == "true"'
Expand Down