-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitlab-ci.yml
55 lines (52 loc) · 1.62 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
testpages:
image: python:3.6
tags:
- primre
variables:
AWS_DEFAULT_REGION: us-west-2
BUCKET_NAME: testcodedocs.primre.org
script:
- apt-get update -q -y
- apt-get install -q -y libblas3 liblapack3 liblapack-dev libblas-dev make git pandoc
- pip install sphinx awscli
- git clone https://${MHKIT_PYTHON_USER}:${MHKIT_PYTHON_TOKEN}@code.primre.org/mhkit/mhkit-python.git MHKiT-Python
- pip install numpy
- pip install pandas
- pip install scipy
- pip install -e MHKiT-Python
- pip install sphinx_rtd_theme
- pip install sphinxcontrib-bibtex
- pip install nbsphinx
- pip install nbsphinx_link
- pip install sphinxcontrib-matlabdomain
- cd docs
- make html
#- mv _build/html/ public/
- aws s3 cp . s3://${BUCKET_NAME}/${CI_PROJECT_PATH}/${CI_COMMIT_REF_SLUG} --recursive
pages:
image: python:3.6
tags:
- primre
variables:
AWS_DEFAULT_REGION: us-west-2
BUCKET_NAME: codedocs.primre.org
script:
- apt-get update -q -y
- apt-get install -q -y libblas3 liblapack3 liblapack-dev libblas-dev make git pandoc
- pip install sphinx awscli
- git clone https://${MHKIT_PYTHON_USER}:${MHKIT_PYTHON_TOKEN}@code.primre.org/mhkit/mhkit-python.git MHKiT-Python
- pip install numpy
- pip install pandas
- pip install scipy
- pip install -e MHKiT-Python
- pip install sphinx_rtd_theme
- pip install sphinxcontrib-bibtex
- pip install nbsphinx
- pip install nbsphinx_link
- pip install sphinxcontrib-matlabdomain
- cd docs
- make html
#- mv _build/html/ public/
- aws s3 cp . s3://${BUCKET_NAME}/${CI_PROJECT_PATH}/${CI_COMMIT_REF_SLUG} --recursive
only:
- master