Commit cce11290 authored by Lionel's avatar Lionel

Testing deploying documentation in branch name.

parent 92af8277
......@@ -19,6 +19,8 @@ cache:
- linux
- python3
- gcc-5
except:
- documentation/*
variables:
CC: "/usr/bin/gcc-5"
CXX: "/usr/bin/g++-5"
......@@ -103,6 +105,8 @@ linux_pyagrum_wheel_x86_64:
tags:
- macos
- python3
except:
- documentation/*
variables:
CC: "/usr/bin/clang"
CXX: "/usr/bin/clang++"
......@@ -192,6 +196,8 @@ macos_pyagrum_cp36_wheel:
tags:
- windows
- conda64
except:
- documentation/*
variables:
PATH: "C:\\Program Files\\Git\\bin;C:\\Users\\conda64\\Anaconda3;C:\\Users\\conda64\\Anaconda3\\Library\\mingw-w64\\bin;C:\\Users\\conda64\\Anaconda3\\Library\\usr\\bin;C:\\Users\\conda64\\Anaconda3\\Library\\bin;C:\\Users\\conda64\\Anaconda3\\Scripts;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\MSBuild\\14.0\\Bin;%PATH%;"
ACT_OPTIONS: "--no-fun --mvsc -d build"
......@@ -323,7 +329,7 @@ pyAgrum_documentation:
tags:
- linux
- python3
- ovh_deploy
- deploy_ovh
variables:
CC: "/usr/bin/gcc-5"
CXX: "/usr/bin/g++-5"
......@@ -338,4 +344,4 @@ pyAgrum_documentation:
- pip install -r wrappers/pyAgrum/testunits/requirements.txt
- pip install sphinx
- python act doc pyAgrum --python=3
- deploy_ovh
- deploy_ovh $CI_COMMIT_REF_NAME
stages:
- agrum
- pyagrum
- agrum_test
- pyagrum_test
- wheels
cache:
untracked: false
################################################################################
# Linux / gcc
################################################################################
.linux_template: &linux_template
only:
- branches@agrumery/aGrUM
tags:
- linux
- python3
- gcc-5
variables:
CC: "/usr/bin/gcc-5"
CXX: "/usr/bin/g++-5"
cache:
key: linux
paths:
- build/
linux_aGrUM_build:
<<: *linux_template
stage: agrum
script:
- if ! python act --no-fun lib release aGrUM --python=3; then python act --no-fun clean ; python act --no-fun lib release aGrUM --python=3; fi
linux_pyAgrum_build:
<<: *linux_template
stage: pyagrum
script:
- if ! python act --no-fun lib release pyAgrum --python=3; then python act --no-fun clean ; python act --no-fun lib release pyAgrum --python=3; fi
linux_aGrUM_test:
<<: *linux_template
stage: agrum_test
script:
- if ! python act --no-fun test release aGrUM --python=3; then python act --no-fun clean ; python act --no-fun test release aGrUM --python=3; fi
linux_pyAgrum_test:
<<: *linux_template
stage: pyagrum_test
script:
- virtualenv venv --python=$(which python3)
- source venv/bin/activate
- pip install -r wrappers/pyAgrum/testunits/requirements.txt
- if ! python act --no-fun test release pyAgrum --python=3; then python act --no-fun clean ; python act --no-fun test release pyAgrum --python=3; fi
- deactivate
linux_pyagrum_wheel:
only:
- branches@agrumery/aGrUM
tags:
- linux
- docker
stage: wheels
script:
- rm -rf wheels
- docker run -v $(pwd):/aGrUM malichief/pyagrum_manylinux1_x86_64 build_wheels.sh
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when: on_success
expire_in: 1 hrs
paths:
- wheels/*.whl
################################################################################
# MacOS / clang
################################################################################
.macos_template: &macos_template
only:
- branches@agrumery/aGrUM
tags:
- macos
- python3
variables:
CC: "/usr/bin/clang"
CXX: "/usr/bin/clang++"
cache:
key: macos
paths:
- build/
macos_aGrUM_build:
<<: *macos_template
stage: agrum
script:
- if ! python act --no-fun lib release aGrUM --python=3; then python act --no-fun clean ; python act --no-fun lib release aGrUM --python=3; fi
macos_pyAgrum_build:
<<: *macos_template
stage: pyagrum
script:
- if ! python act --no-fun lib release pyAgrum --python=3; then python act --no-fun clean ; python act --no-fun lib release pyAgrum --python=3; fi
macos_aGrUM_test:
<<: *macos_template
stage: agrum_test
script:
- if ! python act --no-fun test release aGrUM --python=3; then python act --no-fun clean ; python act --no-fun test release aGrUM --python=3; fi
macos_pyAgrum_test:
<<: *macos_template
stage: pyagrum_test
script:
- virtualenv venv --python=$(which python3.6)
- source venv/bin/activate
- pip install -r wrappers/pyAgrum/testunits/requirements.txt
- if ! python act --no-fun test release pyAgrum --python=3 -t quick; then python act --no-fun clean ; python act --no-fun test release pyAgrum --python=3 -t quick; fi
- deactivate
macos_pyagrum_cp27_wheel:
only:
- branches@agrumery/aGrUM
tags:
- macos
- python3
stage: wheels
script:
- rm -rf venv wheels
- mkdir -p wheels
- virtualenv venv --python=$(which python2.7)
- source venv/bin/activate
- python act release wheel pyAgrum -d $(pwd)/wheels --python=2
- deactivate
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when: on_success
expire_in: 1 hrs
paths:
- wheels/*.whl
macos_pyagrum_cp36_wheel:
only:
- branches@agrumery/aGrUM
tags:
- macos
- python3
stage: wheels
script:
- rm -rf venv wheels
- mkdir -p wheels
- virtualenv venv --python=$(which python3)
- source venv/bin/activate
- python act release wheel pyAgrum -d $(pwd)/wheels --python=3
- deactivate
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when: on_success
expire_in: 1 hrs
paths:
- wheels/*.whl
################################################################################
# Windows / MVSC
################################################################################
.windows_template: &windows_template
only:
- branches@agrumery/aGrUM
tags:
- windows
- conda64
variables:
PATH: "C:\\Program Files\\Git\\bin;C:\\Users\\conda64\\Anaconda3;C:\\Users\\conda64\\Anaconda3\\Library\\mingw-w64\\bin;C:\\Users\\conda64\\Anaconda3\\Library\\usr\\bin;C:\\Users\\conda64\\Anaconda3\\Library\\bin;C:\\Users\\conda64\\Anaconda3\\Scripts;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\MSBuild\\14.0\\Bin;%PATH%;"
ACT_OPTIONS: "--no-fun --mvsc -d build"
cache:
key: mvsc
paths:
- build/
windows_aGrUM_build:
<<: *windows_template
stage: agrum
script:
- python act --no-fun install release aGrUM %ACT_OPTIONS% || python act --no-fun clean && python act --no-fun lib release aGrUM %ACT_OPTIONS%
windows_pyAgrum_build:
<<: *windows_template
stage: pyagrum
script:
- python act --no-fun install release pyAgrum %ACT_OPTIONS% || python act --no-fun clean && python act --no-fun lib release pyAgrum %ACT_OPTIONS%
windows_aGrUM_test:
<<: *windows_template
stage: agrum_test
script:
- python act --no-fun test release aGrUM %ACT_OPTIONS% || python act --no-fun clean && python act --no-fun test release aGrUM %ACT_OPTIONS%
windows_pyAgrum_test:
<<: *windows_template
stage: pyagrum_test
script:
- pip install -r wrappers/pyAgrum/testunits/requirements.txt
- python act --no-fun test release pyAgrum %ACT_OPTIONS% -t quick || python act --no-fun clean && python act --no-fun test release pyAgrum %ACT_OPTIONS% -t quick
windows_32_pyagrum_cp27_wheels:
only:
- branches@agrumery/aGrUM
tags:
- windows
- conda32
stage: wheels
variables:
PATH: "C:\\Program Files\\Git\\bin;C:\\Users\\conda32\\Anaconda3\\envs\\py27;C:\\Users\\conda32\\Anaconda3\\envs\\py27\\Library\\bin;C:\\Users\\conda32\\Anaconda3\\envs\\py27\\Scripts;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\MSBuild\\14.0\\Bin;%PATH%;"
ACT_OPTIONS: "--no-fun --mvsc32 -d build"
script:
- md wheels
- python act %ACT_OPTIONS% release wheel pyAgrum -d (cd)\\wheel
artifacts:
name: "%CI_JOB_NAME%_%CI_COMMIT_REF_NAME%"
when: on_success
expire_in: 1 hrs
untracked: true
paths:
- wheels\\*.whl
windows_32_pyagrum_cp36_wheels:
only:
- branches@agrumery/aGrUM
tags:
- windows
- conda32
stage: wheels
variables:
PATH: "C:\\Program Files\\Git\\bin;C:\\Users\\conda32\\Anaconda3\\envs\\py36;C:\\Users\\conda32\\Anaconda3\\envs\\py36\\Library\\bin;C:\\Users\\conda32\\Anaconda3\\envs\\py36\\Scripts;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\MSBuild\\14.0\\Bin;%PATH%;"
ACT_OPTIONS: "--no-fun --mvsc32 -d build"
script:
- md wheels
- python act %ACT_OPTIONS% release wheel pyAgrum -d (cd)\\wheel
artifacts:
name: "%CI_JOB_NAME%_%CI_COMMIT_REF_NAME%"
when: on_success
expire_in: 1 hrs
untracked: true
paths:
- wheels\\*.whl
windows_64_pyagrum_cp27_wheels:
only:
- branches@agrumery/aGrUM
tags:
- windows
- conda64
stage: wheels
variables:
PATH: "C:\\Program Files\\Git\\bin;C:\\Users\\conda64\\Anaconda3\\envs\\py27;C:\\Users\\conda64\\Anaconda3\\envs\\py27\\Library\\bin;C:\\Users\\conda64\\Anaconda3\\envs\\py27\\Scripts;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\MSBuild\\14.0\\Bin;%PATH%;"
ACT_OPTIONS: "--no-fun --mvsc -d build"
script:
- md wheels
- python act %ACT_OPTIONS% release wheel pyAgrum -d (cd)\\wheel
artifacts:
name: "%CI_JOB_NAME%_%CI_COMMIT_REF_NAME%"
when: on_success
expire_in: 1 hrs
untracked: true
paths:
- wheels\\*.whl
windows_64_pyagrum_cp36_wheels:
only:
- branches@agrumery/aGrUM
tags:
- windows
- conda64
stage: wheels
variables:
PATH: "C:\\Program Files\\Git\\bin;C:\\Users\\conda64\\Anaconda3\\envs\\py36;C:\\Users\\conda64\\Anaconda3\\envs\\py36\\Library\\bin;C:\\Users\\conda64\\Anaconda3\\envs\\py36\\Scripts;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\MSBuild\\14.0\\Bin;%PATH%;"
ACT_OPTIONS: "--no-fun --mvsc -d build"
script:
- md wheels
- python act %ACT_OPTIONS% release wheel pyAgrum -d (cd)\\wheel
artifacts:
name: "%CI_JOB_NAME%_%CI_COMMIT_REF_NAME%"
when: on_success
expire_in: 1 hrs
untracked: true
paths:
- wheels\\*.whl
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