feat(build) add npm run local-ci

This commit is contained in:
Evan Morikawa 2017-01-24 14:05:49 -05:00
parent 212120d591
commit 677b56f714
2 changed files with 19 additions and 0 deletions

18
build/local-ci.sh Executable file
View file

@ -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

View file

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