File tree 3 files changed +15
-6
lines changed
3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,18 @@ os: linux
5
5
dist : focal
6
6
python : 3.8
7
7
8
+ env :
9
+ - RELEASE_PACKAGE=jarvis_package.tar
10
+
8
11
jobs :
9
12
include :
10
- - stage : setup
13
+ - stage : test
11
14
script :
12
15
- sudo bash bin/deploy/install_system_dependencies.sh
13
16
- bash bin/deploy/install_python_dependencies.sh
14
- - stage : test
15
- script :
16
17
- sudo bash bin/tests/run_tests_on_travis.sh
18
+ after_success :
19
+ - sudo bash bin/deploy/merge_develop_to_master.sh
17
20
- stage : deploy
18
21
before_deploy :
19
22
- sudo bash setup.sh
23
26
provider : releases
24
27
skip_cleanup : true
25
28
api_key : $GITHUB_TOKEN
26
- file : jarvis_package.tar
29
+ file : $RELEASE_PACKAGE
27
30
on :
28
31
branch : master
29
32
Original file line number Diff line number Diff line change @@ -14,8 +14,11 @@ sudo systemctl start mongodb
14
14
# Run unittests
15
15
# --------------------------------
16
16
python -m unittest discover -s ./src -p " *tests.py"
17
+ exit_code=($? )
17
18
18
19
# --------------------------------
19
20
# Stop MongoDB service
20
21
# --------------------------------
21
- sudo systemctl stop mongodb
22
+ sudo systemctl stop mongodb
23
+
24
+ exit $exit_code
Original file line number Diff line number Diff line change @@ -14,8 +14,11 @@ sudo systemctl start mongodb
14
14
# Run unittests
15
15
# --------------------------------
16
16
python -m unittest discover -s ./src -p " *tests.py"
17
+ exit_code=($? )
17
18
18
19
# --------------------------------
19
20
# Stop MongoDB service
20
21
# --------------------------------
21
- sudo systemctl stop mongodb
22
+ sudo systemctl stop mongodb
23
+
24
+ exit $exit_code
You can’t perform that action at this time.
0 commit comments