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",