Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Commit

Permalink
feat: return early if there is no build matrix in the first place
Browse files Browse the repository at this point in the history
boennemann authored and gr2m committed Aug 19, 2017
1 parent f8e16ae commit 3309aaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@ module.exports = async function travisDeployOnce (env = process.env) {

if (!env.TRAVIS_JOB_NUMBER.endsWith(`.${buildLeader}`)) return null
if (env.TRAVIS_TEST_RESULT === '1') return false
if (jobs.length === 1) return true

const currentJobId = parseInt(env.TRAVIS_JOB_ID, 10)
let attempt = 0

0 comments on commit 3309aaf

Please sign in to comment.