From 64c8ff62afd8fdbaf8295d906710c59c5eb45726 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Wed, 13 Sep 2017 09:48:19 -0400 Subject: [PATCH] Add CircleCI for Linux builds (#10344) --- .circleci/config.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++ Dockerfile.circleci | 17 ++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 Dockerfile.circleci diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..4eb1b3ffc --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,53 @@ + +version: 2 +jobs: + electron-linux-arm: + docker: + - image: electronbuilds/electron:0.0.3 + environment: + TARGET_ARCH: arm + steps: + - checkout + - run: script/cibuild + + electron-linux-arm64: + docker: + - image: electronbuilds/electron:0.0.3 + environment: + TARGET_ARCH: arm64 + steps: + - checkout + - run: script/cibuild + + electron-linux-ia32: + docker: + - image: electronbuilds/electron:0.0.3 + environment: + TARGET_ARCH: ia32 + steps: + - checkout + - run: script/cibuild + + electron-linux-x64: + docker: + - image: electronbuilds/electron:0.0.3 + environment: + TARGET_ARCH: x64 + steps: + - checkout + - run: script/cibuild + +workflows: + version: 2 + build-arm: + jobs: + - electron-linux-arm + build-arm64: + jobs: + - electron-linux-arm64 + build-ia32: + jobs: + - electron-linux-ia32 + build-x64: + jobs: + - electron-linux-x64 diff --git a/Dockerfile.circleci b/Dockerfile.circleci new file mode 100644 index 000000000..3c3a610ec --- /dev/null +++ b/Dockerfile.circleci @@ -0,0 +1,17 @@ +FROM electronbuilds/libchromiumcontent:0.0.4 + +USER root + +# Install node.js +RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - +RUN apt-get update && apt-get install -y --force-yes nodejs + +# Install wget used by crash reporter +RUN apt-get install -y --force-yes wget + +# Add xvfb init script +ADD tools/xvfb-init.sh /etc/init.d/xvfb +RUN chmod a+x /etc/init.d/xvfb + +USER builduser +WORKDIR /home/builduser