From 9904da9a48c1d2e6b8181a215b90994ad384d1d8 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 29 Nov 2016 15:41:23 -0800 Subject: [PATCH 1/2] Add initial arm specific cibuild script --- script/cibuild-electron-linux-arm | 5 +++++ script/cibuild-electron-linux-ia32 | 5 +++++ script/cibuild-electron-linux-x64 | 5 +++++ script/cibuild-linux | 17 +++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100755 script/cibuild-electron-linux-arm create mode 100755 script/cibuild-electron-linux-ia32 create mode 100755 script/cibuild-electron-linux-x64 create mode 100755 script/cibuild-linux diff --git a/script/cibuild-electron-linux-arm b/script/cibuild-electron-linux-arm new file mode 100755 index 000000000000..771b4126ee7d --- /dev/null +++ b/script/cibuild-electron-linux-arm @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export TARGET_ARCH=arm + +script/cibuild-linux diff --git a/script/cibuild-electron-linux-ia32 b/script/cibuild-electron-linux-ia32 new file mode 100755 index 000000000000..0e2000c8c20e --- /dev/null +++ b/script/cibuild-electron-linux-ia32 @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export TARGET_ARCH=ia32 + +script/cibuild-linux diff --git a/script/cibuild-electron-linux-x64 b/script/cibuild-electron-linux-x64 new file mode 100755 index 000000000000..6fe23200ff49 --- /dev/null +++ b/script/cibuild-electron-linux-x64 @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export TARGET_ARCH=x64 + +script/cibuild-linux diff --git a/script/cibuild-linux b/script/cibuild-linux new file mode 100755 index 000000000000..f37631f1378f --- /dev/null +++ b/script/cibuild-linux @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +MESSAGE="$(git log --format=%B -n 1 HEAD)" +case ${MESSAGE} in + Bump* ) export ELECTRON_RELEASE=1 ;; +esac + +set +x +export ELECTRON_GITHUB_TOKEN="$BUILD_ELECTRON_ELECTRON_GITHUB_TOKEN" +export ELECTRON_S3_ACCESS_KEY="$BUILD_ELECTRON_ELECTRON_S3_ACCESS_KEY" +export ELECTRON_S3_SECRET_KEY="$BUILD_ELECTRON_ELECTRON_S3_SECRET_KEY" +set -x + + +export ELECTRON_S3_BUCKET="$BUILD_ELECTRON_ELECTRON_S3_BUCKET" + +script/cibuild From 3cb3d8f9816c3844562486761cf7b74a188b614d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 30 Nov 2016 09:28:10 -0800 Subject: [PATCH 2/2] Log build type --- script/cibuild-linux | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/script/cibuild-linux b/script/cibuild-linux index f37631f1378f..22f15936ae34 100755 --- a/script/cibuild-linux +++ b/script/cibuild-linux @@ -6,12 +6,18 @@ case ${MESSAGE} in esac set +x + export ELECTRON_GITHUB_TOKEN="$BUILD_ELECTRON_ELECTRON_GITHUB_TOKEN" +export ELECTRON_S3_BUCKET="$BUILD_ELECTRON_ELECTRON_S3_BUCKET" export ELECTRON_S3_ACCESS_KEY="$BUILD_ELECTRON_ELECTRON_S3_ACCESS_KEY" export ELECTRON_S3_SECRET_KEY="$BUILD_ELECTRON_ELECTRON_S3_SECRET_KEY" + +if [[ -z "${ELECTRON_RELEASE}" ]]; then + echo "Generating Linux $TARGET_ARCH debug build" +else + echo "Generating Linux $TARGET_ARCH release build" +fi + set -x - -export ELECTRON_S3_BUCKET="$BUILD_ELECTRON_ELECTRON_S3_BUCKET" - script/cibuild