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

Commit 54effad

Browse files
committed
fix: correctly detect travis environment
1 parent 3475a67 commit 54effad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Travis = require('travis-ci')
66
module.exports = async function travisDeployOnce ({token} = {}) {
77
token = token || process.env.GH_TOKEN
88
if (!token) throw new Error('GitHub token missing')
9-
if (!process.env.TRAVIS === 'true') throw new Error('Not running on Travis')
9+
if (process.env.TRAVIS !== 'true') throw new Error('Not running on Travis')
1010
if (!process.env.TRAVIS_JOB_NUMBER.endsWith('.1')) return null
1111
if (process.env.TRAVIS_TEST_RESULT === '1') return false
1212
if (process.env.TRAVIS_TEST_RESULT !== '0') throw new Error('Not running in Travis after_success hook')

0 commit comments

Comments
 (0)