Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
image: continuumio/miniconda:latest
variables:
CONDA_PKGS_DIRS: "${CI_PROJECT_DIR}/conda/pkgs"
GIT_SUBMODULE_STRATEGY: recursive
cache:
paths:
- $CONDA_PKGS_DIRS
before_script:
- apt-get update -y && apt-get -y install libgl1-mesa-glx
- conda update -y conda
- conda env create -f environment.yml
- source activate resultsanalysis
- ls
- cd ../
- if [[ ! -d 'xmlvalidator' ]]; then git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.developers.cam.ac.uk/ch/hunter/ssiptools/utils/xmlvalidator.git; fi
- cd xmlvalidator
- pip install .
- cd ../
- if [[ ! -d 'resultsanalysis' ]]; then git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.developers.cam.ac.uk/ch/hunter/ssiptools/utils/resultsanalysis.git; fi
- cd resultsanalysis
- pip install .
- cd ../
- if [[ ! -d 'phasexmlparser' ]]; then git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.developers.cam.ac.uk/ch/hunter/ssiptools/utils/phasexmlparser.git; fi
- cd phasexmlparser
- pip install .
- cd ../
- if [[ ! -d 'phasexmlcreator' ]]; then git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.developers.cam.ac.uk/ch/hunter/ssiptools/ssimpleapps/phasexmlcreator.git; fi
- cd phasexmlcreator
- pip install .
- cd ../
- if [[ ! -d 'puresolventinformation' ]]; then git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.developers.cam.ac.uk/ch/hunter/ssiptools/ssimpleapps/puresolventinformation.git; fi
- cd puresolventinformation
- pip install .
- cd ../
- if [[ ! -d 'solventmapcreator' ]]; then git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.developers.cam.ac.uk/ch/hunter/ssiptools/ssimpleapps/solventmapcreator.git; fi
- cd solventmapcreator
- pip install .
- cd ../phasecalculator
unittest:
script:
- pytest phasecalculator/test/*test/*test.py