From 89762809b7ab7fb677a199be27858c1d0b3813f7 Mon Sep 17 00:00:00 2001 From: Duncan Macleod Date: Fri, 15 Feb 2019 14:02:19 +0000 Subject: [PATCH] ci: added macOS test job to make sure that the environment files are osx-compatible --- .gitlab-ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6eff7cd..242d85d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,7 +17,27 @@ variables: before_script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY -test: +test-macos: + tags: + - macos_highsierra + stage: test + variables: + INSTALL_PATH: "${CI_PROJECT_DIR}/miniconda" + only: + - master + - merge_requests + - schedules + before_script: [] + script: + - curl -o ./miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh + - /bin/bash miniconda.sh -b -p ${INSTALL_PATH} + - source ${INSTALL_PATH}/etc/profile.d/conda.sh + - conda update --yes conda + - conda env create -f environment-py27.yml + - conda env create -f environment-py36.yml + - conda env create -f environment-py37.yml + +test-linux: stage: test only: - merge_requests -- GitLab