Adding integration tests to git actions

This commit is contained in:
justin-h-loi 2023-08-22 16:09:48 -04:00 committed by arp102
parent 483fc6c57f
commit ab580ee813
2 changed files with 7 additions and 2 deletions

5
.github/workflows/.travis.yml vendored Normal file → Executable file
View File

@ -18,10 +18,11 @@ jobs:
- run: pip install bandit
- run: pip install codecov
- run: pip install slugs
- run: ./.travis/run.sh
- run: python3 setup.py install
- run: RUN_INTEGRATION_TESTS=${{ matrix.test_number }} ./.travis/run.sh
- run: codecov
strategy:
matrix:
test: ["py310", "pep8", "bandit", "docs"]
test_number: ["0"]
test_number: ["0","1"]
os: [ubuntu-22.04]

View File

@ -3,6 +3,9 @@
set -e
set -x
pkill -f run_server.py || true
sleep 1
if [[ "${RUN_INTEGRATION_TESTS}" == "1" ]]; then
sudo mkdir -p /etc/pykmip/certs
sudo mkdir -p /etc/pykmip/policies
@ -14,6 +17,7 @@ if [[ "${RUN_INTEGRATION_TESTS}" == "1" ]]; then
sudo cp ./.travis/policy.json /etc/pykmip/policies/policy.json
sudo mkdir -p /var/log/pykmip
sudo chmod 777 /var/log/pykmip
sudo chmod -R 777 /etc/pykmip/
python3 ./bin/run_server.py &
tox -e integration -- --config client
elif [[ "${RUN_INTEGRATION_TESTS}" == "2" ]]; then