Skip to content

Latest commit

 

History

History
49 lines (45 loc) · 1.05 KB

File metadata and controls

49 lines (45 loc) · 1.05 KB

  • Add "[ci skip]" to a commit message, and Travis will automatically skip that build

Two different ways to distinguish a tag from regular push

language: python
dist: xenial
python:
  - "3.4"
  - "3.5"
  - "3.6"
  - "3.7"
script: python -V

matrix:
  fast_finish: true
  include:
    - python: "3.7"
      if: tag IS present
      env: ['TAG_IS_PRESENT'] 
      script: echo "Tag is present"
language: python
dist: xenial
python:
  - "3.4"
  - "3.5"
  - "3.6"
  - "3.7"
script: python -V

jobs:
  fast_finish: true
  include:
    - stage: deploy
      if: tag IS present
      language: python
      python: "3.7"
      install: skip
      script:
        - echo "Stage ==> deploy"