Add CI build through Electron
This commit is contained in:
Родитель
eb109cf905
Коммит
db542f2a26
|
@ -0,0 +1,18 @@
|
|||
notifications:
|
||||
email: false
|
||||
|
||||
language: node_js
|
||||
node_js:
|
||||
- "6"
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
env:
|
||||
- TARGET_ARCH=x64
|
||||
osx_image: xcode7.3
|
||||
|
||||
script: './script/cibuild'
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
|
@ -0,0 +1,24 @@
|
|||
version: "{build}"
|
||||
|
||||
clone_depth: 10
|
||||
|
||||
os: Visual Studio 2015
|
||||
|
||||
init:
|
||||
- git config --global core.autocrlf input
|
||||
|
||||
platform:
|
||||
- x64
|
||||
|
||||
install:
|
||||
- cmd: SET PATH=C:\Program Files (x86)\MSBuild\14.0\bin\;%PATH%
|
||||
- cmd: SET PATH=C:\python27;%PATH%
|
||||
- cmd: bash script/cibuild
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
# disable build and test phases
|
||||
build: off
|
||||
test: off
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
# Make cloned repository complete
|
||||
git fetch --unshallow origin HEAD
|
||||
|
||||
# Clone Electron
|
||||
git clone https://github.com/electron/electron --depth 1 --recursive
|
||||
|
||||
# Checkout current native_mate commit into Electron
|
||||
cd electron/vendor/native_mate
|
||||
git fetch ../../..
|
||||
git reset --hard FETCH_HEAD
|
||||
|
||||
# Commit change
|
||||
cd ../..
|
||||
git add vendor/native_mate
|
||||
git config --local user.email "test@github.com"
|
||||
git config --local user.name "Test"
|
||||
git commit --message 'Upgrading native_mate'
|
||||
|
||||
# Bootstrap Electron
|
||||
npm run bootstrap -- --dev
|
||||
|
||||
# Build Electron with native_mate commit
|
||||
npm run build
|
Загрузка…
Ссылка в новой задаче