Skip to content
Snippets Groups Projects
Commit 804c9e90 authored by murgatroid99's avatar murgatroid99
Browse files

Add Electron tests to portability test matrix

parent f1c85b0e
No related branches found
No related tags found
No related merge requests found
...@@ -42,12 +42,18 @@ RUN apt-get update && apt-get install -y \ ...@@ -42,12 +42,18 @@ RUN apt-get update && apt-get install -y \
git \ git \
golang \ golang \
gyp \ gyp \
libasound2 \
lcov \ lcov \
libc6 \ libc6 \
libc6-dbg \ libc6-dbg \
libc6-dev \ libc6-dev \
libgconf-2-4 \
libgtest-dev \ libgtest-dev \
libgtk2.0-0 \
libnss3 \
libtool \ libtool \
libxss1\
libxtst6 \
make \ make \
perl \ perl \
strace \ strace \
...@@ -57,6 +63,7 @@ RUN apt-get update && apt-get install -y \ ...@@ -57,6 +63,7 @@ RUN apt-get update && apt-get install -y \
telnet \ telnet \
unzip \ unzip \
wget \ wget \
xvfb \
zip && apt-get clean zip && apt-get clean
#================ #================
......
...@@ -42,4 +42,5 @@ export npm_config_target=$ELECTRON_VERSION ...@@ -42,4 +42,5 @@ export npm_config_target=$ELECTRON_VERSION
export npm_config_disturl=https://atom.io/download/atom-shell export npm_config_disturl=https://atom.io/download/atom-shell
export npm_config_runtime=electron export npm_config_runtime=electron
export npm_config_build_from_source=true export npm_config_build_from_source=true
mkdir -p ~/.electron-gyp
HOME=~/.electron-gyp npm install --unsafe-perm HOME=~/.electron-gyp npm install --unsafe-perm
...@@ -34,4 +34,6 @@ ELECTRON_VERSION=$1 ...@@ -34,4 +34,6 @@ ELECTRON_VERSION=$1
nvm install 6 nvm install 6
set -ex set -ex
npm install xvfb-maybe
npm install electron@$ELECTRON_VERSION npm install electron@$ELECTRON_VERSION
...@@ -40,5 +40,6 @@ test_directory='src/node/test' ...@@ -40,5 +40,6 @@ test_directory='src/node/test'
timeout=8000 timeout=8000
JUNIT_REPORT_PATH=src/node/report.xml JUNIT_REPORT_STACK=1 \ JUNIT_REPORT_PATH=src/node/report.xml JUNIT_REPORT_STACK=1 \
./node_modules/.bin/xvfb-maybe \
./node_modules/.bin/electron-mocha --timeout $timeout \ ./node_modules/.bin/electron-mocha --timeout $timeout \
--reporter mocha-jenkins-reporter $test_directory --reporter mocha-jenkins-reporter $test_directory
...@@ -230,6 +230,15 @@ def _create_portability_test_jobs(extra_args=[], inner_jobs=_DEFAULT_INNER_JOBS) ...@@ -230,6 +230,15 @@ def _create_portability_test_jobs(extra_args=[], inner_jobs=_DEFAULT_INNER_JOBS)
labels=['portability'], labels=['portability'],
extra_args=extra_args, extra_args=extra_args,
inner_jobs=inner_jobs) inner_jobs=inner_jobs)
test_jobs += _generate_jobs(languages=['node'],
configs=['dbg'],
platforms=['linux'],
arch='default',
compiler='electron1.3',
labels=['portability'],
extra_args=extra_args,
inner_jobs=inner_jobs)
return test_jobs return test_jobs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment