From a5cdaae401ed9fe09f954728600981bfa78699eb Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Sun, 3 Sep 2017 16:56:14 +0200 Subject: [PATCH] Handle packing differently on CI --- .travis.yml | 6 ++++-- scripts/slack.js | 0 test/pack-now.js | 10 ---------- 3 files changed, 4 insertions(+), 12 deletions(-) mode change 100644 => 100755 scripts/slack.js diff --git a/.travis.yml b/.travis.yml index 587ffc1..c02703d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,11 @@ "node_js": [ "node" ], + "before_script": [ + "yarn run pack" + ], "after_success": [ - 'npm install -g slackup', - 'npm run pack', + 'yarn global add slackup', './scripts/slack.js' ], "deploy": { diff --git a/scripts/slack.js b/scripts/slack.js old mode 100644 new mode 100755 diff --git a/test/pack-now.js b/test/pack-now.js index efcc34e..0925c9c 100755 --- a/test/pack-now.js +++ b/test/pack-now.js @@ -8,16 +8,6 @@ const test = require('ava') // Utilities const logo = require('../src/util/output/logo') -test.serial('make binary', async t => { - if (!process.env.CI) { - t.true(true) - return - } - - const result = await spawn('npm', ['run', 'pack']) - t.is(result.code, 0) -}) - const binary = { darwin: 'now-macos', linux: 'now-linux',