-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
John Kleinschmidt
committed
Mar 8, 2018
1 parent
569b87f
commit 134d3f9
Showing
4 changed files
with
107 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
FROM arm64v8/ubuntu:16.04 | ||
|
||
RUN groupadd --gid 1000 builduser \ | ||
&& useradd --uid 1000 --gid builduser --shell /bin/bash --create-home builduser | ||
|
||
RUN groupadd --gid 114 jenkins \ | ||
&& useradd --uid 110 --gid jenkins --shell /bin/bash --create-home jenkins | ||
|
||
# Set up TEMP directory | ||
ENV TEMP=/tmp | ||
RUN chmod a+rwx /tmp | ||
|
||
RUN apt-get update && apt-get install -y\ | ||
bison \ | ||
build-essential \ | ||
clang \ | ||
curl \ | ||
gperf \ | ||
git \ | ||
libasound2 \ | ||
libasound2-dev \ | ||
libcap-dev \ | ||
libcups2-dev \ | ||
libdbus-1-dev \ | ||
libgconf-2-4 \ | ||
libgconf2-dev \ | ||
libgnome-keyring-dev \ | ||
libgtk2.0-0 \ | ||
libgtk2.0-dev \ | ||
libgtk-3-0 \ | ||
libgtk-3-dev \ | ||
libnotify-dev \ | ||
libnss3 \ | ||
libnss3-dev \ | ||
libx11-xcb-dev \ | ||
libxss1 \ | ||
libxtst-dev \ | ||
libxtst6 \ | ||
lsb-release \ | ||
locales \ | ||
ninja \ | ||
python-setuptools \ | ||
python-pip \ | ||
python-dbusmock \ | ||
wget \ | ||
xvfb | ||
|
||
# Install node.js | ||
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - | ||
RUN apt-get update && apt-get install -y nodejs | ||
|
||
# Install crcmod | ||
RUN pip install -U crcmod | ||
|
||
ADD tools/xvfb-init.sh /etc/init.d/xvfb | ||
RUN chmod a+x /etc/init.d/xvfb | ||
|
||
# Install ninja in /usr/local | ||
RUN cd /usr/local && git clone https://github.com/martine/ninja.git -b v1.5.3 | ||
RUN cd /usr/local/ninja && ./configure.py --bootstrap | ||
|
||
USER builduser | ||
WORKDIR /home/builduser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
pipeline { | ||
agent { | ||
docker { | ||
image 'electronbuilds/arm64v8:0.0.1' | ||
args '--privileged' | ||
} | ||
} | ||
environment { | ||
TARGET_ARCH='arm64' | ||
DISPLAY=':99.0' | ||
} | ||
stages { | ||
stage('Bootstrap') { | ||
steps { | ||
sh 'script/bootstrap.py -v --dev --target_arch=$TARGET_ARCH' | ||
} | ||
} | ||
stage('Build') { | ||
steps { | ||
sh 'script/build.py -c D --ninja-path /usr/local/ninja/ninja' | ||
} | ||
} | ||
stage('Test') { | ||
steps { | ||
sh '/etc/init.d/xvfb start' | ||
sh 'script/test.py --ci' | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
cleanWs() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters