forked from AppliedMechanics/AMfe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
86 lines (74 loc) · 1.9 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
# Information on how to build or extend the runner:
# http://doc.gitlab.com/ce/ci/yaml/README.html
stages:
- build
- test
- deploy
default:
tags:
- docker
image: hyperred/amfe-gitlab-ci:0.1.2
# This image already sets the path variable such that the python
# is in /opt/conda/envs/amfe-dev/bin/python (the clean environment from docker image)
build_without_fortran:
stage: build
script:
- python setup.py develop no_fortran
build_with_fortran:
stage: build
script:
- /opt/conda/bin/conda install numpy -n amfe-dev
- python setup.py develop
unittest:
stage: test
script:
- /opt/conda/bin/conda install numpy -n amfe-dev
- python setup.py develop
- /opt/conda/bin/conda install nose coverage pylint mkl -n amfe-dev
- nosetests --with-coverage --cover-package amfe
documentation_test:
stage: test
when: always
script:
- /opt/conda/bin/conda install numpy -n amfe-dev
- python setup.py develop
- python setup.py build_sphinx
language_quality_test:
stage: test
when: always
script:
- /opt/conda/bin/conda install pylint -n amfe-dev
- pylint amfe || exit 0 # pylint always exits with nonzero...
build_wheel_for_linux_developer:
stage: deploy
script:
- /opt/conda/bin/conda install numpy -n amfe-dev
- python setup.py bdist_wheel
artifacts:
name: AMfe-linux
paths:
- dist/*.whl
expire_in: 2 months
only:
- developer
build_wheel_for_linux_master:
stage: deploy
script:
- /opt/conda/bin/conda install numpy -n amfe-dev
- python setup.py bdist_wheel
artifacts:
name: AMfe-linux
paths:
- dist/*.whl
only:
- master
pages:
stage: deploy
script:
- /opt/conda/bin/conda install numpy -n amfe-dev
- python setup.py develop
- sphinx-build -b html -d docs/_build/doctrees ./docs docs/_build/html
- mv docs/_build/html public
artifacts:
paths:
- public