-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
71 lines (64 loc) · 1.39 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
image: continuumio/anaconda3
# ===== Check code style =====
check_code_style:
stage:
test
script:
- pip install -e .
- pycodestyle --ignore=E501,W504,E741 ed_win
tags:
- python
# ===== TEST EDWIN debian=====
test_EDWIN:
stage:
test
script:
- pip install -e .[test] --timeout 60
- pytest
tags:
- ci-ubuntu
# ===== TEST EDWIN on Windows =====
test_EDWIN_windows:
stage:
test
script:
- conda init powershell
- "if (test-path $PROFILE.CurrentUserAllHosts) { & $PROFILE.CurrentUserAllHosts}"
- conda activate py36_openmdao26
- pip install -e .[test]
- pytest --cov-report term-missing:skip-covered --cov=ed_win --cov-config .coveragerc
tags:
- ANMH_old
# ===== BUILD DOCS AND PUSH TO PUBLIC WEBSITE =====
pages:
stage:
deploy
script:
- apt-get update
- apt-get -y install make
- pip install --upgrade pip
- pip install sphinx --upgrade
- pip install nbsphinx --upgrade
- pip install -e .[test]
- cd docs; make html
- cd ../; mv docs/build/html public/
artifacts:
paths:
- public
only:
- main
- /^test_doc.*/
tags:
- python
pypi:
stage:
deploy
only:
- tags
script:
- python3 -m pip install -U setuptools wheel
- python3 setup.py sdist bdist_wheel
- python3 -m pip install -U twine
- twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
tags:
- python