-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/rel/7.4' into fwd/7.4-master
- Loading branch information
Showing
9 changed files
with
173 additions
and
6 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
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,43 @@ | ||
--- | ||
version: 0.2 | ||
|
||
branches: | ||
default: | ||
stage: pre-merge | ||
|
||
stages: | ||
pre-merge: | ||
worker: &master-worker | ||
type: docker | ||
path: eve/workers/master | ||
volumes: | ||
- '/home/eve/workspace' | ||
steps: | ||
- Git: | ||
name: fetch source | ||
repourl: '%(prop:git_reference)s' | ||
shallow: True | ||
retryFetch: True | ||
haltOnFailure: True | ||
- ShellCommand: | ||
name: install dependencies | ||
command: npm install | ||
- ShellCommand: | ||
name: run lint yml | ||
command: npm run --silent lint_yml | ||
- ShellCommand: | ||
name: run lint | ||
command: npm run --silent lint -- --max-warnings 0 | ||
- ShellCommand: | ||
name: run lint_md | ||
command: npm run --silent lint_md | ||
- ShellCommand: | ||
name: run test | ||
command: npm run --silent test | ||
- ShellCommand: | ||
name: run ft_test | ||
command: npm run ft_test | ||
- ShellCommand: | ||
name: run executables tests | ||
command: npm install && npm test | ||
workdir: '%(prop:builddir)s/build/lib/executables/pensieveCreds/' |
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,55 @@ | ||
FROM ubuntu:trusty | ||
|
||
# | ||
# Install apt packages needed by the buildchain | ||
# | ||
ENV LANG C.UTF-8 | ||
COPY buildbot_worker_packages.list arsenal_packages.list /tmp/ | ||
RUN apt-get update -q && apt-get -qy install curl apt-transport-https \ | ||
&& apt-get install -qy software-properties-common python-software-properties \ | ||
&& curl --silent https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \ | ||
&& echo "deb https://deb.nodesource.com/node_6.x trusty main" > /etc/apt/sources.list.d/nodesource.list \ | ||
&& add-apt-repository ppa:ubuntu-toolchain-r/test \ | ||
&& apt-get update -q \ | ||
&& cat /tmp/buildbot_worker_packages.list | xargs apt-get install -qy \ | ||
&& cat /tmp/arsenal_packages.list | xargs apt-get install -qy \ | ||
&& pip install pip==9.0.1 \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -f /tmp/*_packages.list | ||
|
||
# | ||
# Install usefull nodejs dependencies | ||
# | ||
|
||
RUN npm install mocha -g | ||
|
||
# | ||
# Add user eve | ||
# | ||
|
||
RUN adduser -u 1042 --home /home/eve --disabled-password --gecos "" eve \ | ||
&& adduser eve sudo \ | ||
&& sed -ri 's/(%sudo.*)ALL$/\1NOPASSWD:ALL/' /etc/sudoers | ||
|
||
# | ||
# Run buildbot-worker on startup | ||
# | ||
|
||
ARG BUILDBOT_VERSION=0.9.12 | ||
RUN pip install yamllint | ||
RUN pip install buildbot-worker==$BUILDBOT_VERSION | ||
|
||
USER eve | ||
ENV HOME /home/eve | ||
# | ||
# Setup nodejs environmnent | ||
# | ||
|
||
ENV CXX=g++-4.9 | ||
ENV LANG C.UTF-8 | ||
|
||
|
||
WORKDIR /home/eve/workspace | ||
CMD buildbot-worker create-worker . "$BUILDMASTER:$BUILDMASTER_PORT" "$WORKERNAME" "$WORKERPASS" \ | ||
&& sudo service redis-server start \ | ||
&& buildbot-worker start --nodaemon |
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,3 @@ | ||
nodejs | ||
redis-server | ||
g++-4.9 |
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,9 @@ | ||
ca-certificates | ||
git | ||
libffi-dev | ||
libssl-dev | ||
python2.7 | ||
python2.7-dev | ||
python-pip | ||
software-properties-common | ||
sudo |
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
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