Compare commits

..

No commits in common. "481f52863e9038c04ed8f67268e9b1794681b3fa" and "a6b5c21e5d0291307442602223de0c65e7509e22" have entirely different histories.

3 changed files with 16 additions and 57 deletions

View File

@ -7,22 +7,11 @@ branches:
stages:
pre-merge:
worker:
type: local
steps:
- TriggerStages:
name: trigger all the tests
stage_names:
- run-tests
waitForFinish: True
haltOnFailure: True
run-tests:
worker:
type: kube_pod
path: eve/workers/pod.yml
images:
aggressor: eve/workers/master
worker: &master-worker
type: docker
path: eve/workers/master
volumes:
- '/home/eve/workspace'
steps:
- Git:
name: fetch source
@ -33,7 +22,6 @@ stages:
- ShellCommand:
name: install dependencies
command: npm install
haltOnFailure: True
- ShellCommand:
name: run lint yml
command: npm run --silent lint_yml
@ -43,6 +31,10 @@ stages:
- ShellCommand:
name: run lint_md
command: npm run --silent lint_md
- ShellCommand:
name: add hostname
command: sudo sh -c "echo '127.0.0.1 testrequestbucket.localhost' \
>> /etc/hosts"
- ShellCommand:
name: run test

View File

@ -17,6 +17,12 @@ RUN apt-get update -q && apt-get -qy install curl apt-transport-https \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /tmp/*_packages.list
#
# Install usefull nodejs dependencies
#
RUN npm install mocha -g
#
# Add user eve
#
@ -43,6 +49,7 @@ 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

View File

@ -1,40 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: "arsenal-test-pod"
spec:
restartPolicy: Never
terminationGracePeriodSeconds: 10
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "testrequestbucket.localhost"
containers:
- name: mongo
image: scality/ci-mongo:3.6.8
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 100m
memory: 1Gi
limits:
cpu: 500m
memory: 1Gi
- name: aggressor
image: {{ images.aggressor }}
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 100m
memory: 1Gi
limits:
cpu: "1"
memory: 2Gi
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-socket
volumes:
- name: docker-socket
hostPath:
path: /var/run/docker.sock
type: Socket