Commit e6cdb6b0 authored by Alexander A. Maly's avatar Alexander A. Maly

Fixing yml for new CI configuration.

parent 6b3dfa54
stages:
- configure
- build
- dist
- pack
configure:winxp:
stage: configure
tags:
- winxp
artifacts:
name: arts-%CI_PIPELINE_ID%-winxp-cfg
expire_in: 1 hour
when: always
paths:
- build/
script:
- if exist build\ rd /s/q build\
- md build
- cd build
- set PATH=%MINGWDIR%\bin;C:\Program Files\CMake\bin
- cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DUSE_QT=4 -DQT_QMAKE_EXECUTABLE=%QT4DIR%/bin/qmake.exe -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=%PYTHON_EXECUTABLE% -G "MinGW Makefiles" ..
build:winxp:
stage: build
tags:
- winxp
dependencies:
- configure:winxp
artifacts:
name: arts-%CI_PIPELINE_ID%-winxp-build
expire_in: 1 hour
......@@ -36,9 +13,12 @@ build:winxp:
paths:
- build/
script:
- set PATH=%MINGWDIR%\bin;C:\Program Files\CMake\bin
- if exist build\ rd /s/q build\
- md build
- cd build
- set PATH=%MINGWDIR%\bin;C:\Program Files\CMake\bin
- echo %date% %time%
- cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DUSE_QT=4 -DQT_QMAKE_EXECUTABLE=%QT4DIR%/bin/qmake.exe -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=%PYTHON_EXECUTABLE% -G "MinGW Makefiles" ..
- mingw32-make -j8 -k
- echo %date% %time%
......@@ -81,35 +61,10 @@ dist:winxp:
- move kumir2-*-install.exe ..\..\
configure:win32:
stage: configure
tags:
- windows
artifacts:
name: arts-%CI_PIPELINE_ID%-win32-cfg
expire_in: 1 hour
when: always
paths:
- build/
script:
- if exist build\ rd /s/q build\
- md build
- cd build
- set QMAKESPEC=win32-msvc2015
- set INCLUDE=
- set LIB=
- set LIBPATH=
- call vsvars32.bat
- call vcvars32.bat
- cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Wno-dev -DCMAKE_PREFIX_PATH="%QTDIR%\lib\cmake" -DQt5_DIR="%QTDIR%\lib\cmake\Qt5" -DUSE_QT=5 -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=%PYTHON_EXECUTABLE% -G "Ninja" ..
build:win32:
stage: build
tags:
- windows
dependencies:
- configure:win32
- win32
artifacts:
name: arts-%CI_PIPELINE_ID%-win32-build
expire_in: 1 hour
......@@ -117,7 +72,10 @@ build:win32:
paths:
- build/
script:
- if exist build\ rd /s/q build\
- md build
- cd build
- set QMAKESPEC=win32-msvc2015
- set INCLUDE=
- set LIB=
- set LIBPATH=
......@@ -125,6 +83,7 @@ build:win32:
- call vcvars32.bat
- set CL=/MP
- echo %date% %time%
- cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Wno-dev -DCMAKE_PREFIX_PATH="%QTDIR%\lib\cmake" -DQt5_DIR="%QTDIR%\lib\cmake\Qt5" -DUSE_QT=5 -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=%PYTHON_EXECUTABLE% -G "Ninja" ..
- ninja -v -j8
- echo %date% %time%
......@@ -132,7 +91,7 @@ build:win32:
dist:win32:
stage: dist
tags:
- windows
- win32
dependencies:
- build:win32
artifacts:
......@@ -185,29 +144,11 @@ dist:win32:
- move kumir2-*-install.exe ..\..\
configure:mac:
stage: configure
tags:
- mac
artifacts:
name: arts-$CI_PIPELINE_ID-mac-cfg
expire_in: 1 hour
when: always
paths:
- build/
script:
- rm -rf build
- mkdir build
- cd build
- export PATH=$QTDIR_MAC/bin:$PATH
- cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DUSE_QT=5 -DCMAKE_BUILD_TYPE=Release ..
build:mac:
stage: build
tags:
- mac
dependencies:
- configure:mac
artifacts:
name: arts-$CI_PIPELINE_ID-mac-build
expire_in: 1 hour
......@@ -215,13 +156,15 @@ build:mac:
paths:
- build/
script:
- rm -rf build
- mkdir build
- cd build
- export PATH=$QTDIR_MAC/bin:$PATH
- date
- cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DUSE_QT=5 -DCMAKE_BUILD_TYPE=Release ..
- make -k -j8
- date
dist:mac:
stage: dist
tags:
......@@ -241,28 +184,10 @@ dist:mac:
- mv Kumir.dmg ../Kumir-$CI_COMMIT_REF_NAME-$CI_PIPELINE_ID.dmg
configure:linux:
stage: configure
tags:
- linux
artifacts:
name: arts-$CI_PIPELINE_ID-linux-cfg
expire_in: 1 hour
when: always
paths:
- build/
script:
- rm -rf build
- mkdir build
- cd build
- cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DUSE_QT=4 -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
build:linux:
stage: build
tags:
- linux
dependencies:
- configure:linux
artifacts:
name: arts-$CI_PIPELINE_ID-linux-build
expire_in: 1 hour
......@@ -270,8 +195,11 @@ build:linux:
paths:
- build/
script:
- rm -rf build
- mkdir build
- cd build
- date
- cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DUSE_QT=4 -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
- make -k -j8
- date
- du -k --max=1 . |sort -n
......
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