Skip to content
Snippets Groups Projects
Commit e9cb794e authored by schmittu's avatar schmittu :beer:
Browse files

[CI] test also with unbuntu 20.04

parent 5f6a1a2e
No related branches found
No related tags found
No related merge requests found
Pipeline #1976 failed
......@@ -4,7 +4,7 @@ stages:
check_style:
stage: test_code
image: sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_16_10_for_emzed
image: sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_19_10_for_emzed
tags:
- docker-executor
script:
......@@ -26,9 +26,26 @@ windows_tests:
- venv/Scripts/python -c 'import emzed_ext_mzmine2 as e; e.init()'
- venv/Scripts/pytest -s tests
linux_tests:
ubuntu_19_10:
stage: test_code
image: sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_19_10_for_emzed
tags:
- docker-executor
script:
- pip install --extra-index-url https://pypi-sissource.ethz.ch/simple emzed3
- pip install -e .
- pip install -r requirements_dev.txt
- sleep ${SLEEP:-0}
- python3 -c 'import emzed_ext_mzmine2 as e; e.init()'
- pytest -s --cov src --cov-report html --cov-report term tests
artifacts:
paths:
- htmlcov/
ubuntu_20_04:
stage: test_code
image: sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_16_10_for_emzed
image: sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_20_04_for_emzed
tags:
- docker-executor
script:
......
#!/usr/bin/env bash
exec 3< <(gitlab-runner exec docker --env SLEEP=99999 --timeout 99999 ${1:-ubuntu_20_04})
while true;
do read <&3 line; echo "$line";
if [[ "$line" == *'sleep ${SLEEP:-0}'* ]]; then
break
fi
done
ID=$(docker ps | grep runner | grep concurrent | grep build | cut -d " " -f 1)
docker exec -it ${ID} bash
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment