Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Limit jobs for non-release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
edward-ly committed Apr 3, 2021
1 parent a80c497 commit ca2a707
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
language: node_js
jobs:
include:
- os: windows
- if: branch = master AND type = push
os: windows
env:
- YARN_GPG=no
- os: osx
script: yarn release
- if: branch = master AND type = push
os: osx
osx_image: xcode10.2
- os: linux
script: yarn release
- if: branch = master AND type = push
os: linux
dist: xenial
script:
- if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then yarn release; else yarn build; fi
script: yarn release
- if: branch != master OR type != push
os: linux
dist: xenial
script: yarn build

0 comments on commit ca2a707

Please sign in to comment.