-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.local.jenkins.lin.yml
More file actions
32 lines (24 loc) · 1.57 KB
/
.local.jenkins.lin.yml
File metadata and controls
32 lines (24 loc) · 1.57 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
language: python
python:
- { PATH: "{{Python39}}", VERSION: 3.9, DIST: std, PYINT: python3.9, PYTHONPATH: src }
virtualenv:
- path: {{ospathjoin(root_path, pickname("$NAME_JENKINS", project_name + "_$VERSION_$DIST_$NAME"), "_venv")}}
install:
- $PYINT -m pip install --upgrade pip
- $PYINT -m pip install --upgrade --no-cache-dir --no-deps --index http://localhost:8067/simple/ pyquickhelper pyensae pymmails pymyinstall pyrsslocal mlstatpy ensae_teaching_cs jyquickhelper scikit-learn --extra-index-url=https://pypi.python.org/simple/
- $PYINT -m pip install -r requirements.txt
- $PYINT --version
- $PYINT -m pip freeze
before_script:
- $PYINT -u setup.py write_version
script:
- { CMD: "$PYINT -u setup.py unittests --covtoken=c310b252-ef1b-4454-896c-2d2e01670378", NAME: "UT", TIMEOUT: 3600 }
- { CMD: "$PYINT -u setup.py unittests -e .*LONG.* -g \".*((LONG_LONG)|(cartopy)).*\"", NAME: "UT_LONG", TIMEOUT: 9000, SCHEDULER: "H H(1-2) 12 * *" }
- { CMD: "$PYINT -u setup.py unittests -e .*LONG_LONG.*", NAME: "UT_LONG_LONG", TIMEOUT: 9000, SCHEDULER: "H H(1-2) 3 * *" }
- { CMD: "$PYINT -u setup.py unittests -e .*cartopy.*", NAME: "UT_MAP", TIMEOUT: 9000, SCHEDULER: "H H(1-2) 4 * *" } # gerry mandering in a notebook
after_script:
- $PYINT -u setup.py bdist_wheel
- if [ ${VERSION} == "3.9" and ${NAME} == "UT" ] then cp dist/*.whl {{root_path}}/../local_pypi/local_pypi_server fi
documentation:
- if [ ${NAME} == "UT" ] then $PYINT -u setup.py build_sphinx --layout=html fi
- if [ ${NAME} == "UT" ] then cp -R -f _doc/sphinxdoc/build/html dist/html fi