-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
64 lines (57 loc) · 1.27 KB
/
.gitlab-ci.yml
File metadata and controls
64 lines (57 loc) · 1.27 KB
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
variables:
GIT_STRATEGY: none
stages:
- build
- test
- doc
default:
tags: [rcc,docker,node-01]
image: continuumio/miniconda3:latest
before_script:
- apt-get update > /dev/null
- export TZ="US/Central"
- apt-get install -qq make > /dev/null
- rm -f /etc/localtime
- cp /usr/share/zoneinfo/$TZ /etc/localtime
- conda init bash
- conda create -y --name westpy_env python=3.8
- source ~/.bashrc
- conda activate westpy_env
- pip install -q -U pip
- pip install -q -U pytest
- which python
.git_clone: &git_clone
- rm -rf westpy
- git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL westpy
- cd westpy
- git describe --tags --always
westpy_build:
stage: build
script:
- *git_clone
- pip install .
westpy_test:
stage: test
script:
- *git_clone
- pip install .
- cd test-suite
- pytest
westpy_lint:
stage: test
script:
- pip install -q black
- *git_clone
- black --check --diff --color westpy
westpy_doc_build:
stage: doc
script:
- apt-get install -qq pandoc > /dev/null
- pip install -q -U sphinx
- pip install -q -U nbsphinx
- pip install -q -U sphinx_rtd_theme
- pip install -q -U jupyter
- *git_clone
- cd doc
- make html
- ls _build/html