mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-04-08 19:25:06 +02:00
Adding integration tests to git actions
This commit is contained in:
parent
483fc6c57f
commit
ab580ee813
5
.github/workflows/.travis.yml
vendored
Normal file → Executable file
5
.github/workflows/.travis.yml
vendored
Normal file → Executable 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]
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user