ci: Update docker image to python 3.7, use generic python3

The python3 version in docker image may not be the same in the qemu
test runner VM image, so a more generic 'python3' is used when creating
the venv.
This commit is contained in:
Clayton Craft 2020-02-08 15:53:06 -08:00
parent 6540c25a9b
commit fbdc68c3b6
No known key found for this signature in database
GPG Key ID: 23A30DA6D406B355
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
---
# Author: Clayton Craft <clayton@craftyguy.net>
image: python:3.6-slim-stretch
image: python:3.7-slim-stretch
cache:
paths:
@ -10,7 +10,7 @@ cache:
before_script:
- ./.gitlab/setup-pmos-environment.sh
# venv created in CI_PROJECT_DIR for caching
- "[[ ! -d venv ]] && virtualenv venv -p $(which python3.6)"
- "[[ ! -d venv ]] && virtualenv venv -p $(which python3)"
- "source venv/bin/activate"
- "pip3 install pytest-cov python-coveralls pytest"
- "python3 --version"