-
lukas leufen authoredlukas leufen authored
.gitlab-ci.yml 4.04 KiB
stages:
- init
- test
- docs
- pages
### Static Badges ###
version:
stage: init
tags:
- leap
- zam347
- base
only:
- master
- tags
script:
- chmod +x ./CI/update_badge.sh
- chmod +x ./CI/create_version_badge.sh
- ./CI/create_version_badge.sh
artifacts:
name: pages
when: always
paths:
- badges/
### Tests (from scratch) ###
tests (from scratch):
tags:
- base
- zam347
stage: test
only:
- master
- /^release.*$/
- develop
variables:
FAILURE_THRESHOLD: 100
TEST_TYPE: "scratch"
before_script:
- chmod +x ./CI/update_badge.sh
- ./CI/update_badge.sh > /dev/null
script:
- pip install --upgrade pip
- pip install numpy wheel six==1.15.0
- zypper --non-interactive install binutils libproj-devel gdal-devel
- zypper --non-interactive install proj geos-devel
# - cat requirements.txt | cut -f1 -d"#" | sed '/^\s*$/d' | xargs -L 1 pip install
- pip install -r requirements.txt
- chmod +x ./CI/run_pytest.sh
- ./CI/run_pytest.sh
after_script:
- ./CI/update_badge.sh > /dev/null
artifacts:
name: pages
when: always
paths:
- badges/
- test_results/
### Tests (on GPU) ###
#tests (on GPU):
# tags:
# - gpu
# - zam347
# stage: test
# only:
# - master
# - /^release.*$/
# - develop