File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,15 @@ install:
1414 - bash bin/deploy/install_python_dependencies.sh
1515
1616script :
17- - sudo bash run_tests .sh
17+ - sudo bash bin/tests/run_tests_on_travis .sh
1818
1919after_success :
2020 - sudo bash bin/deploy/merge_develop_to_master.sh
2121
2222before_deploy :
2323 - echo "Deployment preperation"
2424 - sudo bash setup.sh
25+ - sudo bash run_tests.sh
2526 - bash bin/deploy/new_release_auto_tagging.sh
2627
2728deploy :
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ tar -cvf jarvis_package.tar -T config/package_file_list.txt
88echo " Add tags to new release"
99git config --global user.email
" [email protected] " 1010git config --global user.name " Travis CI"
11- export GIT_TAG=$TRAVIS_BRANCH -$TRAVIS_BUILD_NUMBER
11+ export GIT_TAG=$TRAVIS_BRANCH -build_ $TRAVIS_BUILD_NUMBER
1212git tag $GIT_TAG -a -m " Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER "
1313git push -q https://$GITHUB_TOKEN @github.com/ggeop/Python-ai-assistant --tags
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # --------------------------------
3+ # Activate Python virtual env
4+ # --------------------------------
5+ export PYTHONPATH=" ${PYTHONPATH} :./src/jarvis"
6+
7+ # --------------------------------
8+ # Start MongoDB service
9+ # --------------------------------
10+ sudo systemctl start mongodb
11+
12+ # --------------------------------
13+ # Run unittests
14+ # --------------------------------
15+ python -m unittest discover -s ./src -p " *tests.py"
16+
17+ # --------------------------------
18+ # Stop MongoDB service
19+ # --------------------------------
20+ sudo systemctl stop mongodb
Original file line number Diff line number Diff line change 33# Activate Python virtual env
44# --------------------------------
55export PYTHONPATH=" ${PYTHONPATH} :./src/jarvis"
6- # source jarvis_virtualenv/bin/activate
7- source ~ /virtualenv/python3.8/bin/activate
6+ source jarvis_virtualenv/bin/activate
87
98# --------------------------------
109# Start MongoDB service
You can’t perform that action at this time.
0 commit comments