From 677b56f714057bbd5a0372a5c1fbd1853f3a2f7f Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Tue, 24 Jan 2017 14:05:49 -0500 Subject: [PATCH] feat(build) add `npm run local-ci` --- build/local-ci.sh | 18 ++++++++++++++++++ package.json | 1 + 2 files changed, 19 insertions(+) create mode 100755 build/local-ci.sh diff --git a/build/local-ci.sh b/build/local-ci.sh new file mode 100755 index 000000000..36130baba --- /dev/null +++ b/build/local-ci.sh @@ -0,0 +1,18 @@ +#! /usr/bin/env bash +set -e +if [ ! -d "build/resources/certs" ]; then + echo "Please manually place the unencrypted certs for this operating system into build/resources/certs" + exit 1 +fi + +mkdir -p /tmp/nylas +mv build/resources/certs /tmp/nylas/certs +git clean -xdf +mv /tmp/nylas/certs build/resources/certs + +export PUBLISH_BUILD=true; +git submodule update --init --recursive +source build/resources/certs/set_unix_env.sh + +script/bootstrap +script/grunt ci diff --git a/package.json b/package.json index b2992341b..8645dd20b 100644 --- a/package.json +++ b/package.json @@ -107,6 +107,7 @@ }, "packageDependencies": {}, "scripts": { + "local-ci": "./build/local-ci.sh", "test": "electron . --test --enable-logging", "start": "electron . --dev --enable-logging", "lint": "script/grunt lint",