Skip to content

Commit 6d708d5

Browse files
ironman-machineCloud User
authored and
Cloud User
committed
merge #160
2 parents 250a179 + 6ab610b commit 6d708d5

File tree

5 files changed

+86
-0
lines changed

5 files changed

+86
-0
lines changed

eve/main.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
version: 0.2
3+
4+
branches:
5+
default:
6+
stage: pre-merge
7+
8+
stages:
9+
pre-merge:
10+
worker:
11+
type: docker
12+
path: eve/workers/unit_and_feature_tests
13+
volumes:
14+
- '/home/eve/workspace'
15+
steps:
16+
- Git:
17+
name: fetch source
18+
repourl: '%(prop:git_reference)s'
19+
shallow: True
20+
retryFetch: True
21+
haltOnFailure: True
22+
- ShellCommand:
23+
name: npm install
24+
command: npm install
25+
# - ShellCommand:
26+
# name: get api node modules from cache
27+
# command: mv /home/eve/node_reqs/node_modules .
28+
- ShellCommand:
29+
name: run static analysis tools on markdown
30+
command: npm run lint_md
31+
- ShellCommand:
32+
name: run static analysis tools on code
33+
command: npm run lint
34+
- ShellCommand:
35+
name: run unit tests
36+
command: npm test
37+
- ShellCommand:
38+
name: run feature tests
39+
command: npm run ft_test
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM buildpack-deps:jessie-curl
2+
3+
#
4+
# Install apt packages needed by backbeat and buildbot_worker
5+
#
6+
ENV LANG C.UTF-8
7+
COPY utapi_packages.list buildbot_worker_packages.list /tmp/
8+
9+
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \
10+
&& apt-get update -qq \
11+
&& cat /tmp/*packages.list | xargs apt-get install -y \
12+
&& pip install pip==9.0.1 \
13+
&& rm -rf /var/lib/apt/lists/* \
14+
&& rm -f /tmp/*packages.list \
15+
&& rm -f /etc/supervisor/conf.d/*.conf
16+
17+
18+
#
19+
# Run buildbot-worker on startup through supervisor
20+
#
21+
ARG BUILDBOT_VERSION
22+
23+
RUN pip install buildbot-worker==$BUILDBOT_VERSION
24+
ADD supervisor/buildbot_worker.conf /etc/supervisor/conf.d/
25+
26+
CMD ["supervisord", "-n"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ca-certificates
2+
git
3+
libffi-dev
4+
libssl-dev
5+
python2.7
6+
python2.7-dev
7+
python-pip
8+
sudo
9+
supervisor
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[program:buildbot_worker]
2+
command=/bin/sh -c 'buildbot-worker create-worker . "%(ENV_BUILDMASTER)s:%(ENV_BUILDMASTER_PORT)s" "%(ENV_WORKERNAME)s" "%(ENV_WORKERPASS)s" && buildbot-worker start --nodaemon'
3+
autostart=true
4+
autorestart=false
5+
6+
[program:redis]
7+
command=/usr/bin/redis-server
8+
autostart=true
9+
autorestart=false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build-essential
2+
redis-server
3+
nodejs

0 commit comments

Comments
 (0)