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

Adding CI build for GNU/Linux

Plus some minor flags update (-g1) to fit the CI environment.
parent ce2bea85
Pipeline #1270 passed with stages
in 7 minutes and 10 seconds
......@@ -240,3 +240,57 @@ dist:mac:
- macdeployqt Kumir.app -dmg
- 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
when: always
paths:
- build/
script:
- cd build
- date
- make -k -j8
- date
- du -k --max=1 . |sort -n
dist:linux:
stage: dist
tags:
- linux
dependencies:
- build:linux
artifacts:
name: arts-$CI_PIPELINE_ID-linux-dist
paths:
- Kumir2X-$CI_PIPELINE_ID.tar.gz
script:
- rm -rf Kumir2X-$CI_PIPELINE_ID.tar.gz
- cd build
- rm -rf Kumir2X-$CI_COMMIT_SHORT_SHA
- mkdir Kumir2X-$CI_COMMIT_SHORT_SHA
- mv bin lib share Kumir2X-$CI_COMMIT_SHORT_SHA/
- tar zcpf ../Kumir2X-$CI_PIPELINE_ID.tar.gz Kumir2X-$CI_COMMIT_SHORT_SHA/
......@@ -45,9 +45,10 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
set(CMAKE_INSTALL_RPATH "")
# Compile flags
set(KUMIR2_CXXFLAGS "-fno-exceptions -std=c++0x -fPIC")
set(KUMIR2_CXXFLAGS_Release "-O2 -DNDEBUG -DQT_NO_DEBUG")
set(KUMIR2_CXXFLAGS_Debug "-g -O0 -Werror -Wreorder -Wreturn-type -Wno-error=unused-variable -Wno-error=unused-parameter")
set(KUMIR2_CXXFLAGS "-fno-exceptions -std=c++0x -fPIC -Wall -W ")
set(KUMIR2_CXXFLAGS_Release "-O2 -UNDEBUG")
set(KUMIR2_CXXFLAGS_RelWithDebInfo "-O2 -g1 -UNDEBUG -UQT_NO_DEBUG")
set(KUMIR2_CXXFLAGS_Debug "-g -O1")
# Linkage flags
if(KUMIR2_ROOT)
......
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