mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-01 12:58:52 +08:00
feat(build) add npm run local-ci
This commit is contained in:
parent
212120d591
commit
677b56f714
2 changed files with 19 additions and 0 deletions
18
build/local-ci.sh
Executable file
18
build/local-ci.sh
Executable 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
|
|
@ -107,6 +107,7 @@
|
||||||
},
|
},
|
||||||
"packageDependencies": {},
|
"packageDependencies": {},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"local-ci": "./build/local-ci.sh",
|
||||||
"test": "electron . --test --enable-logging",
|
"test": "electron . --test --enable-logging",
|
||||||
"start": "electron . --dev --enable-logging",
|
"start": "electron . --dev --enable-logging",
|
||||||
"lint": "script/grunt lint",
|
"lint": "script/grunt lint",
|
||||||
|
|
Loading…
Reference in a new issue