.gitlab-ci.yml 651 Bytes
Newer Older
before_script:
  - export GIT_SSL_NO_VERIFY=1
  - git submodule sync --recursive
  - git submodule update --init --recursive
  - export PATH="$HOME/miniconda2/bin:$PATH"

test_python2:
  script:
Javier Vegas-Regidor's avatar
Javier Vegas-Regidor committed
    - conda env update -f environment.yml -n earthdiagnostics2 python=2.7
Javier Vegas-Regidor's avatar
Javier Vegas-Regidor committed
    - source activate earthdiagnostics2
    - python run_test.py

test_python3:
  script:
Javier Vegas-Regidor's avatar
Javier Vegas-Regidor committed
    - conda env remove -n earthdiagnostics3
Javier Vegas-Regidor's avatar
Javier Vegas-Regidor committed
    - conda env create -f environment.yml -n earthdiagnostics3 python=3.6
Javier Vegas-Regidor's avatar
Javier Vegas-Regidor committed
    - source activate earthdiagnostics3
    - python run_test.py
    - pip install codacy-coverage --upgrade
    - python-codacy-coverage -r test/report/python3/coverage.xml