-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitlab-ci.yml
57 lines (48 loc) · 1.02 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
# This is the E-TRAINEE GitLab CI/CD configuration file.
#
# A pipeline is composed of independent jobs that run scripts, grouped into stages.
# Stages run in sequential order, but jobs within stages run in parallel.
#
# For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages
#
stages:
- test
- deploy
#image: python:3.8-buster
image: python:3.10-slim
before_script:
- pip install --upgrade pip && pip install -U mkdocs mkdocs-jupyter jupyter_contrib_nbextensions urlextract bs4 requests
Link-checker:
stage: test
script:
- cd scripts
- python link_checker_404.py
- cd ..
only:
- main
- dev
mkdocs-build:
stage: deploy
script:
- rm -rf site
- cd mkdocs
- mkdocs build --clean --site-dir ../site
- cd ..
artifacts:
paths:
- site/
only:
- main
- dev
#pages:
# stage: deploy
# script:
# - cd mkdocs
# - mkdocs build
# - cd ..
# - mv site public
# artifacts:
# paths:
# - public
# only:
# - main