-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
45 lines (37 loc) · 1.33 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
# Match the python versions in:
# - environment.yml
# - docker image
image: continuumio/miniconda3
before_script:
##
## For private git+ssh dependencies, enable the following:
##
## - apt-get update -y -qq && apt-get install -y -qq git make openssh-client
## - eval $(ssh-agent -s)
## ## Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
## - ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 --decode)
## ## Create the SSH directory and give it the right permissions
## - mkdir -p ~/.ssh
## - chmod 700 ~/.ssh
## - ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
## - chmod 644 ~/.ssh/known_hosts
## ## For git commands, set the user name and email.
## - git config --global user.email "git@gitlab.com"
## - git config --global user.name "gitlab-CI"
## Setup conda environment
- apt-get update -y -qq && apt-get install -y -qq git make
- export CONDA_ENV=base
- source /opt/conda/etc/profile.d/conda.sh
- make conda-ci
stages:
- code-test
code_quality:
allow_failure: true
stage: code-test
script:
- make pylint
- make pytypehint
code_test:
stage: code-test
script:
- make pycoverage