File tree Expand file tree Collapse file tree 3 files changed +65
-2
lines changed
Expand file tree Collapse file tree 3 files changed +65
-2
lines changed Original file line number Diff line number Diff line change 1+ version : 2.1
2+
3+ commands :
4+ after_failure :
5+ parameters :
6+ when :
7+ type : string
8+ steps :
9+ - run :
10+ name : On failure action
11+ command : |
12+ cat /var/log/nuodb/nuoadmin.log*
13+ grep ssl /opt/nuodb/etc/nuoadmin.conf
14+ when : <<parameters.when>>
15+
16+ - when :
17+ condition : <<parameters.when>>
18+ steps :
19+ - store_artifacts :
20+ path : /var/log/nuodb/nuoadmin.log
21+
22+
23+ jobs :
24+ build_n_run :
25+ docker :
26+ - image : nuodb/nuodb-ce:latest
27+ user : root
28+ resource_class : small
29+ steps :
30+ - checkout
31+ - run :
32+ command : dnf install make -y
33+ name : Install make
34+ - run :
35+ name : Install python dependencies
36+ command : make install
37+ - run :
38+ name : Create test result folder
39+ command : mkdir test_results
40+ - run :
41+ name : Configure and run NuoDB Admin
42+ command : |
43+ sudo -u nuodb "/opt/nuodb/etc/nuoadmin" tls $NUO_SET_TLS
44+ sudo -u nuodb "/opt/nuodb/etc/nuoadmin" start
45+ - run :
46+ name : Run test
47+ command : make test
48+ - store_artifacts :
49+ path : htmlcov
50+ - store_test_results :
51+ path : test_results
52+ - after_failure :
53+ when : " on_fail"
54+
55+ environment :
56+ TZ : America/New_York
57+ NUO_SET_TLS : disable
58+
59+ workflows :
60+ build-project :
61+ jobs :
62+ - build_n_run
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ pip-log.txt
3636.testtemp
3737nosetests.xml
3838htmlcov /
39+ test_results /
3940
4041# Translations
4142* .mo
Original file line number Diff line number Diff line change 2828
2929PYTHON ?= python
3030VIRTUALENV ?= virtualenv
31- PIP ?= pip
31+ PIP ?= pip3
3232
3333MKDIR ?= mkdir -p
3434RMDIR ?= rm -rf
@@ -38,7 +38,7 @@ VIRTDIR ?= ./.virttemp
3838
3939PYTEST_ARGS ?=
4040
41- PYTEST_OPTS ?=
41+ PYTEST_OPTS ?= --junitxml=test_results/result.xml
4242PYTEST_COV ?= --cov=pynuodb --cov-report html --cov-report term-missing
4343
4444SUDO ?= sudo -n
You can’t perform that action at this time.
0 commit comments