forked from umr-lops/xsar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (35 loc) · 1.19 KB
/
.gitlab-ci.yml
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
stages:
- Tests-Installation
.install-conda-templates: &install-conda
before_script:
- cat /etc/*release
- echo $SHELL
- apt update --fix-missing && apt install -y wget git zip unzip
- wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/anaconda.sh && /bin/bash ~/anaconda.sh -b -p /opt/conda && rm ~/anaconda.sh && ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bash_profile && echo "conda activate base" >> ~/.bash_profile
- source ~/.bash_profile
- source ./docs/scripts/conda_create_activate
- source ./docs/scripts/conda_install_recommended
.import-test-templates: &install-lib
script:
- pip install .
- pip install -r requirements.txt
- python test/test_xsar.py
.test-templates: &test
<<: *install-conda
<<: *install-lib
test_ubuntu_20.04:
stage: Tests-Installation
image: ubuntu:20.04
<<: *test
#test_ubuntu_18.04:
#stage: Tests-Installation
#image: ubuntu:18.04
#<<: *test
#test_ubuntu_16.04:
#stage: Tests-Installation
#image: ubuntu:16.04
#<<: *test
#test_debian_10:
#stage: Tests-Installation
#image: debian:10
#<<: *test