Compare commits
10 Commits
developmen
...
wip/mongo-
Author | SHA1 | Date |
---|---|---|
philipyoo | 481f52863e | |
philipyoo | 1ab5669f0d | |
philipyoo | 22c9e24f0d | |
philipyoo | e1bb0ab3a8 | |
philipyoo | f7edcbda4d | |
philipyoo | 03917ad6e9 | |
philipyoo | fb386e5d16 | |
philipyoo | 79dcedecbe | |
philipyoo | cbd2fdda8d | |
philipyoo | 6211e56911 |
26
eve/main.yml
26
eve/main.yml
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue