forked from cloudify-cosmo/cloudify-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-tests.sh
More file actions
executable file
·63 lines (59 loc) · 1.81 KB
/
Copy pathrun-tests.sh
File metadata and controls
executable file
·63 lines (59 loc) · 1.81 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash -e
REST_CONFIG=./rest-service/tox.ini
WORKFLOWS_CONFIG=./workflows/tox.ini
install_dependencies() {
echo "### Installing dependencies..."
case $CIRCLE_NODE_INDEX in
0)
pip install flake8
tox -c $WORKFLOWS_CONFIG --notest
tox -c $REST_CONFIG -e clientV1-endpoints --notest
tox -c $REST_CONFIG -e clientV1-infrastructure --notest
tox -c $REST_CONFIG -e clientV2-endpoints --notest
tox -c $REST_CONFIG -e clientV2-infrastructure --notest
tox -c $REST_CONFIG -e clientV2_1-endpoints --notest
tox -c $REST_CONFIG -e clientV2_1-infrastructure --notest
tox -c $REST_CONFIG -e clientV3-endpoints --notest
tox -c $REST_CONFIG -e clientV3-infrastructure --notest
;;
*)
echo "Not running in fist node. Skipping..."
esac
}
run() {
echo "### Running tests..."
case $CIRCLE_NODE_INDEX in
0)
flake8 plugins/riemann-controller/ workflows/ rest-service/ tests/
tox -c $REST_CONFIG -e clientV1-endpoints
tox -c $REST_CONFIG -e clientV1-infrastructure
;;
1)
tox -c $REST_CONFIG -e clientV2-endpoints
;;
2)
tox -c $REST_CONFIG -e clientV2-infrastructure
tox -c $WORKFLOWS_CONFIG
;;
3)
tox -c $REST_CONFIG -e clientV2_1-endpoints
;;
4)
tox -c $REST_CONFIG -e clientV2_1-infrastructure
;;
5)
tox -c $REST_CONFIG -e clientV3-endpoints
;;
6)
tox -c $REST_CONFIG -e clientV3-infrastructure
;;
esac
}
case $1 in
--install-dependencies)
install_dependencies
;;
*)
run
;;
esac