Commit 52d9383e authored by Thomas Vincent's avatar Thomas Vincent

first try for windows CI

parent 6540ce9e
......@@ -9,10 +9,14 @@ variables: # Global variables
https_proxy: http://proxy.esrf.fr:3128
no_proxy: .esrf.fr,localhost
### Linux ###
# Target definitions
.linux_build_template: &linux_build_definition
stage: build
tags: linux
tags:
- linux
image: ${IMAGE}
before_script:
- rm -rf ${VENV_DIR}
......@@ -38,7 +42,8 @@ variables: # Global variables
.linux_test_template: &linux_test_definition
stage: test
tags: linux
tags:
- linux
image: ${IMAGE}
before_script:
- rm -rf ${VENV_DIR}
......@@ -93,6 +98,8 @@ linux_test_python3:
variables: *linux_python3_definition
### Documentation ###
# Deploy documentation in gitlab (only for master branch)
pages:
stage: deploy
......@@ -107,3 +114,48 @@ pages:
- public
only:
- master
### Windows ###
.windows_template: &windows_definition
tags:
- win
before_script:
- SET "PATH=C:\\miniconda3;C:\\miniconda3\\Scripts;%PATH%"
- python -m venv --clear %VENV_DIR%
- call "%VENV_DIR%\\Scripts\\activate.bat"
- python -m pip install --upgrade pip
- python ci\info_platform.py
script:
after_script:
- rmdir %VENV_DIR% /s /q
windows_build_python3:
<<: *windows_definition
stage: build
script:
- pip install --upgrade -r requirements-dev.txt
- python ci\info_platform.py
# Build the wheel
- python setup.py bdist_wheel
- dir dist
artifacts:
paths:
- dist
when: on_success
expire_in: 2h
windows_test_python3:
<<: *windows_definition
stage: test
dependencies:
- windows_build_python3
script:
# Install numpy first as it is needed to build xrayutilities
- pip install numpy --only-binary numpy
- pip install h5py fabio scipy silx xrayutilities --only-binary scipy,h5py,silx,fabio
- python ci\info_platform.py
# Install wheel and run the tests
- pip install --pre --find-links dist/ --no-cache-dir --no-index xsocs
- python run_tests.py --installed -v
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment