Commit 438d2c65 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Adding Windows before script to modify environment path in gitlab-ci.

parent 8c952cf2
Pipeline #7357 failed with stages
in 23 seconds
.stage_:set nartifacts_mpi: &stage_artifacts_mpi
.stage_artifacts_mpi: &stage_artifacts_mpi
artifacts:
paths:
- build_mpi/
......@@ -14,6 +14,9 @@
- googletest/
- testframework/
expire_in: 1 day
.windows_before_script: &windows_before_script
before_script:
- set PATH=%PATH%;c:\vendors\git\2.11\cmd;c:\vendors\cmake\3.6.3\bin;c:\vendors\mingw-w64\qt\5.7.0\bin
stages:
- configure
- build
......@@ -115,32 +118,33 @@ test_linux_mpi:
- build_linux_mpi
configure_windows:
stage: configure
tags:
- windows
<<: *stage_artifacts
script:
- set PATH=%PATH%;c:\vendors\cmake\3.6.3\bin;c:\vendors\mingw-w64\qt\5.7.0\bin
- where git
- git --version
- where qmake
- qmake -version
- where cmake
- cmake --version
- git clone https://github.com/lefebvre/TriBITS.git TriBITS
- git clone https://github.com/lefebvre/testframework testframework
- git clone https://github.com/lefebvre/googletest googletest
- python TriBITS/tribits/python_utils/gitdist.py pull
- mkdir build
- cd build
- which cmake
- cmake -DTPL_LAPACK_LIBRARIES=/vendors/mingw-w64/lapack/3.6.1/lib/liblapack.a\\\;/vendors/mingw-w64/lapack/3.6.1/lib/libblas.a -DBUILDNAME=Windows-MinGW-GCC-4.8.5-Debug -DCMAKE_BUILD_TYPE=DEBUG -Dradix_ENABLE_COVERAGE_TESTING=ON -Dradix_ENABLE_TESTS=ON -Dradix_ENABLE_ams=ON -Dradix_ENABLE_radixio=ON -Dradix_ENABLE_radixmath=ON -Dradix_ENABLE_radixpara=ON -Dradix_ENABLE_radixgeometry=ON -Dradix_ENABLE_radixglls=ON -Dradix_ENABLE_googletest=ON ..
stage: configure
tags:
- windows
<<: *stage_artifacts
<<: *windows_before_script
script:
- where git
- git --version
- where qmake
- qmake -version
- where cmake
- cmake --version
- git clone https://github.com/lefebvre/TriBITS.git TriBITS
- git clone https://github.com/lefebvre/testframework testframework
- git clone https://github.com/lefebvre/googletest googletest
- python TriBITS/tribits/python_utils/gitdist.py pull
- mkdir build
- cd build
- which cmake
- cmake -DTPL_LAPACK_LIBRARIES=/vendors/mingw-w64/lapack/3.6.1/lib/liblapack.a\\\;/vendors/mingw-w64/lapack/3.6.1/lib/libblas.a -DBUILDNAME=Windows-MinGW-GCC-4.8.5-Debug -DCMAKE_BUILD_TYPE=DEBUG -Dradix_ENABLE_COVERAGE_TESTING=ON -Dradix_ENABLE_TESTS=ON -Dradix_ENABLE_ams=ON -Dradix_ENABLE_radixio=ON -Dradix_ENABLE_radixmath=ON -Dradix_ENABLE_radixpara=ON -Dradix_ENABLE_radixgeometry=ON -Dradix_ENABLE_radixglls=ON -Dradix_ENABLE_googletest=ON ..
build_windows:
stage: build
tags:
- windows
<<: *stage_artifacts
<<: *windows_before_script
script:
- cd build/
- ctest -D ExperimentalStart -D ExperimentalBuild -D ExperimentalSubmit
......@@ -148,12 +152,13 @@ build_windows:
- configure_windows
test_windows:
stage: test
tags:
- windows
<<: *stage_artifacts
script:
- cd build
- ctest -D ExperimentalTest -D ExperimentalSubmit
dependencies:
- build_windows
stage: test
tags:
- windows
<<: *stage_artifacts
<<: *windows_before_script
script:
- cd build
- ctest -D ExperimentalTest -D ExperimentalSubmit
dependencies:
- build_windows
Supports Markdown
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