forked from StackStorm/st2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
46 lines (42 loc) · 1.78 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
notify:
webhooks:
- url: https://ci-webhooks.stackstorm.net/webhooks/build/events
machine:
services:
- postgresql
- rabbitmq-server
environment:
# We add /tmp/mongodb/bin/ directory to PATH so the correct and latest version of mongo shell
# binary is used.
PATH: /tmp/mongodb/bin/:${PATH}
dependencies:
cache_directories:
- ~/.cache/pip
pre:
- sudo .circle/configure-services.sh
- sudo .circle/add-itest-user.sh
# We install and test with all the supported MongoDB versions
- case $CIRCLE_NODE_INDEX in [1,2]) sudo service mongodb stop ; MONGODB_VERSION=3.2.12 sudo -E .circle/install-and-run-mongodb.sh > /tmp/mongodb-install.log 2>&1 ;; [3,4]) sudo service mongodb stop ; MONGODB_VERSION=3.4.2 sudo -E .circle/install-and-run-mongodb.sh > /tmp/mongodb-install.log 2>&1 ;; esac:
background: true
# We sleep a bit to wait for the background process to start and script to
# finish
- case $CIRCLE_NODE_INDEX in [1,2]) sleep 10 ;; esac
# Tail the logs so it's easier to see what is going on. Sadly when using "background: true"
# whole output is ignored.
- case $CIRCLE_NODE_INDEX in [1,2]) tail -50 /tmp/mongodb-install.log ;; [3,4]) tail -50 /tmp/mongodb-install.log ;; esac
- sudo pip install codecov
override:
- make compile requirements
test:
override:
- case $CIRCLE_NODE_INDEX in 0) make ci-checks ci-packs-tests ;; 1) make ci-unit ;; 2) make ci-integration ;; 3) make ci-unit ;; 4) make ci-integration ;; esac:
parallel: true
post:
- case $CIRCLE_NODE_INDEX in 0) . virtualenv/bin/activate; tools/generate_spec.py > $CIRCLE_ARTIFACTS/openapi.yaml ;; [1,2]) codecov ;; esac:
parallel: true
experimental:
notify:
branches:
only:
- master
- /v[0-9]+\.[0-9]+/