Compare commits

...

10 Commits

Author SHA1 Message Date
philipyoo 481f52863e test 2019-04-18 15:43:49 -07:00
philipyoo 1ab5669f0d test 2019-04-18 15:28:06 -07:00
philipyoo 22c9e24f0d fix indent 2019-04-18 15:23:12 -07:00
philipyoo e1bb0ab3a8 test 2019-04-18 15:21:34 -07:00
philipyoo f7edcbda4d test 2019-04-18 15:15:31 -07:00
philipyoo 03917ad6e9 test 2019-04-18 15:00:47 -07:00
philipyoo fb386e5d16 test 2019-04-18 14:55:20 -07:00
philipyoo 79dcedecbe test 2019-04-18 14:50:16 -07:00
philipyoo cbd2fdda8d s 2019-04-18 14:42:15 -07:00
philipyoo 6211e56911 test 2019-04-18 14:33:02 -07:00
3 changed files with 57 additions and 16 deletions

View File

@ -7,11 +7,22 @@ branches:
stages: stages:
pre-merge: pre-merge:
worker: &master-worker worker:
type: docker type: local
path: eve/workers/master steps:
volumes: - TriggerStages:
- '/home/eve/workspace' 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
steps: steps:
- Git: - Git:
name: fetch source name: fetch source
@ -22,6 +33,7 @@ stages:
- ShellCommand: - ShellCommand:
name: install dependencies name: install dependencies
command: npm install command: npm install
haltOnFailure: True
- ShellCommand: - ShellCommand:
name: run lint yml name: run lint yml
command: npm run --silent lint_yml command: npm run --silent lint_yml
@ -31,10 +43,6 @@ stages:
- ShellCommand: - ShellCommand:
name: run lint_md name: run lint_md
command: npm run --silent 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: - ShellCommand:
name: run test name: run test

View File

@ -17,12 +17,6 @@ RUN apt-get update -q && apt-get -qy install curl apt-transport-https \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& rm -f /tmp/*_packages.list && rm -f /tmp/*_packages.list
#
# Install usefull nodejs dependencies
#
RUN npm install mocha -g
# #
# Add user eve # Add user eve
# #
@ -49,7 +43,6 @@ ENV CXX=g++-4.9
ENV LANG C.UTF-8 ENV LANG C.UTF-8
WORKDIR /home/eve/workspace
CMD buildbot-worker create-worker . "$BUILDMASTER:$BUILDMASTER_PORT" "$WORKERNAME" "$WORKERPASS" \ CMD buildbot-worker create-worker . "$BUILDMASTER:$BUILDMASTER_PORT" "$WORKERNAME" "$WORKERPASS" \
&& sudo service redis-server start \ && sudo service redis-server start \
&& buildbot-worker start --nodaemon && buildbot-worker start --nodaemon

40
eve/workers/pod.yml Normal file
View File

@ -0,0 +1,40 @@
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