-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
87 lines (73 loc) · 1.91 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
include:
- project: "epi2melabs/ci-templates"
file: "push-github.yaml"
- project: "epi2melabs/ci-templates"
file: "push-conda.yaml"
- project: "epi2melabs/ci-templates"
file: "snippets.yaml"
image: ${UBUNTUIMAGE}:20.04
variables:
GIT_SUBMODULE_STRATEGY: recursive
.prep-image: &prep-image |
DEBIAN_FRONTEND=noninteractive
apt update -qq
apt install -y --no-install-recommends gcc autoconf automake valgrind make curl wget zlib1g-dev libbz2-dev libreadline-dev libssl-dev libffi-dev liblzma-dev libcurl4-gnutls-dev
stages:
- test
- prerelease
- release
build:
stage: test
before_script:
- *prep-image
artifacts:
when: always
paths:
- test/*
script:
- make
- ./fastcat --help
- ./bamstats --help
- ./bamindex build --help
- PEPPER=1 make test
deploy-checks:
stage: prerelease
script:
- !reference [.check, argp-c-version]
- !reference [.check, changelog]
- export LICENSE_FILE="BSD-4-CLAUSE"
- !reference [.check, license]
rules:
- if: '$CI_COMMIT_TAG =~ /^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$/'
.before-script: &before-script |
export CONDA_PKG=${CI_PROJECT_NAME}
export CONDA_PKG_VERSION=${CI_COMMIT_TAG/v/}
cd conda
conda:
extends: .deploy-conda
before_script:
- *prep-image
- *before-script
conda-arm:
extends: .deploy-conda-linux-arm
before_script:
- *prep-image
- *before-script
conda-mac:
extends: .deploy-conda-mac
before_script:
- *before-script
conda-mac-arm:
extends: .deploy-conda-mac-arm
before_script:
- *before-script
test-conda-arm:
stage: test
extends: .deploy-conda-linux-arm
variables:
UPLOAD: "no"
before_script:
- *prep-image
- *before-script
rules:
- if: $CI_COMMIT_BRANCH != null