@@ -4,6 +4,8 @@ otp_release:
4
4
- 18.0
5
5
- 17.0
6
6
7
+ sudo : false
8
+
7
9
env :
8
10
- TASK=lint
9
11
- TASK=dialyzer
17
19
- TASK=acceptance-negative-tests
18
20
- TASK=http-worker-tests
19
21
22
+ addons :
23
+ apt :
24
+ packages :
25
+ - python-virtualenv
26
+
27
+ cache :
28
+ directories :
29
+ - $HOME/.cache/pip
30
+ - $HOME/.cache/rebar3
31
+
20
32
script :
33
+ - virtualenv venv
34
+ - source venv/bin/activate
21
35
- ./bin/rebar3 update
22
36
- export PROJECTS="node server common_apps/mzbench_language common_apps/mzbench_utils";
23
37
- case "$TASK" in
24
- lint) sudo pip install pyflakes && ./bin/lint.py . ;;
25
- validate-examples) sudo pip install -r requirements.txt && make -C examples check;;
26
- error-messages) sudo pip install -r requirements.txt && make -C acceptance_tests/invalid_scripts check;;
27
- http-worker-tests) sudo pip install -r requirements.txt &&
38
+ lint) pip install pyflakes && ./bin/lint.py . ;;
39
+ validate-examples) pip install -r requirements.txt && make -C examples check;;
40
+ error-messages) pip install -r requirements.txt && make -C acceptance_tests/invalid_scripts check;;
41
+ http-worker-tests) pip install -r requirements.txt &&
28
42
export NODE_COMMIT=`git rev-parse HEAD` &&
29
43
export MZBENCH_REPO=`pwd` &&
30
44
cd workers/http &&
31
45
make && make check-local;;
32
- acceptance-*-tests) sudo pip install -r requirements.txt &&
33
- sudo pip install -r acceptance_tests/requirements.txt &&
46
+ acceptance-*-tests) pip install -r requirements.txt &&
47
+ pip install -r acceptance_tests/requirements.txt &&
34
48
export NODE_COMMIT=`git rev-parse HEAD` &&
35
49
export MZBENCH_REPO=`pwd` &&
36
50
cd acceptance_tests &&
37
51
make ${TASK/acceptance-/};;
38
- development-with-rsync) sudo pip install -r requirements.txt &&
39
- sudo pip install -r acceptance_tests/requirements.txt &&
52
+ development-with-rsync) pip install -r requirements.txt &&
53
+ pip install -r acceptance_tests/requirements.txt &&
40
54
export MZBENCH_RSYNC=$PWD/ &&
41
55
rm node/Makefile &&
42
56
make -C acceptance_tests quick-test >/dev/null; [ $? -ne 0 ] &&
0 commit comments