Commit ba0cecc9 authored by Loïc Grobol's avatar Loïc Grobol
Browse files

better env isolation

parent 08ef73bf
Pipeline #2444 failed with stages
in 2 minutes and 15 seconds
default: default:
image: python:latest image: python:latest
before_script: &default_before before_script:
- python -V # Print out python version for debugging - python -V # Print out python version for debugging
- python -m pip install -U pip virtualenv - python -m pip install -U pip virtualenv
- python -m virtualenv .venv - python -m virtualenv .venv
...@@ -32,10 +32,14 @@ split: ...@@ -32,10 +32,14 @@ split:
validate: validate:
stage: "lint" stage: "lint"
before_script: before_script:
- *default_before - mkdir local
- git clone --depth 1 https://github.com/UniversalDependencies/tools.git - git clone --depth 1 https://github.com/UniversalDependencies/tools.git local/ud-tools
- python -V # Print out python version for debugging
- python -m pip install -U pip virtualenv
- python -m virtualenv local/ud-tools/.venv
- source local/ud-tools/.venv/bin/activate
- python -m pip install regex - python -m pip install regex
script: script:
- python tools/validate.py --lang fro corpus/*conllu - python local/ud-tools/validate.py --lang fro corpus/*conllu
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment