Skip to content

Commit

Permalink
#2: use a virtualenv in the absence of proper Docker support on Hoppe…
Browse files Browse the repository at this point in the history
…r Windows version
  • Loading branch information
dzhoshkun committed Sep 24, 2019
1 parent ebc6e0c commit 0b5e30e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ test:windows:
tags:
- gift-hopper
- windows
# This section should ideally be identical to the Linux section. However, we can't yet use Docker
# on the Hopper Windows version (1903) due to https://gitlab.com/gitlab-org/gitlab-runner/issues/4396
variables:
WORKON_HOME: /c/Users/Public/PythonVirtualEnvs
VIRTUAL_ENV_NAME: xononav-ci-${CI_JOB_ID}
before_script:
# Create and activate virtual environment
- mkvirtualenv.bat --python=python3.7.1.exe ${VIRTUAL_ENV_NAME}
- source ${WORKON_HOME}/${VIRTUAL_ENV_NAME}/Scripts/activate
after_script:
# Cleanup virtual environment
- rmvirtualenv.bat ${VIRTUAL_ENV_NAME}

test:linux:
<<: *test_base_task
Expand Down

0 comments on commit 0b5e30e

Please sign in to comment.