Commit ee8e250f authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'gitlab_file' into 'master'

Gitlab file

Remove Jenkins and Move everything to gitlab

See merge request !161
parents be67e2a7 644fd633
Pipeline #3176 passed with stage
in 40 minutes and 55 seconds
......@@ -17,3 +17,40 @@ cppcheck:
artifacts:
paths:
- cppcheck.log
VS2015-Qt-5.6.0-x64:
script: "CI\\VS2015-Qt-5.6.0-x64.bat"
cache:
paths:
- rel/
tags:
- VS2015
- Qt56
artifacts:
paths:
- rel/*.exe
VS2015-Qt-5.6.0-x32:
script: "CI\\VS2015-Qt-5.6.0-x32.bat"
cache:
paths:
- rel/
tags:
- VS2015
- Qt56
artifacts:
paths:
- rel/*.exe
VS2013-Qt-5.5.1-x64:
script: "CI\\VS2013-Qt-5.5.1-x64.bat"
cache:
paths:
- rel/
tags:
- VS2013
- Qt551
artifacts:
paths:
- rel/*.exe
git submodule init
git submodule update --remote
mkdir rel
cd rel
del *.exe
set ARCHITECTURE=x64
set ARCH_VS= Win64
set STRING_ARCH=64-Bit
......@@ -24,3 +30,38 @@ set GLEW_LIBRARY_DIR=C:\libs\VS2013\%ARCHITECTURE%\glew-1.10.0\lib\glew32.lib
set CMAKE_CONFIGURATION=%QT_BASE_CONFIG% -DGLUT_INCLUDE_DIR="%GLUT_INCLUDE_DIR%" -DGLUT_glut_LIBRARY="%GLUT_GLUT_LIBRARY%" -DGLEW_INCLUDE_DIR="%GLEW_INCLUDE_DIR%" -DGLEW_LIBRARY="%GLEW_LIBRARY_DIR%"
"C:\Program Files (x86)\CMake\bin\cmake.exe" -DGTEST_PREFIX="%LIBPATH_BASE%\%ARCHITECTURE%\%GTESTVERSION%" -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DOPENFLIPPER_BUILD_UNIT_TESTS=TRUE %CMAKE_CONFIGURATION% ..
IF %errorlevel% NEQ 0 exit /b %errorlevel%
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "ALL_BUILD"
IF %errorlevel% NEQ 0 exit /b %errorlevel%
set BUILD_PLATFORM=VS2013
del *.exe
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "PACKAGE"
IF %errorlevel% NEQ 0 exit /b %errorlevel%
move OpenFlipper-*.exe "OpenFlipper-Free-Git-Master-%CI_BUILD_REF%-%BUILD_PLATFORM%-%STRING_ARCH%-%QT_VERSION%.exe"
cd tests
copy ..\Build\Qt*.dll testBinaries
copy ..\Build\icu*.dll testBinaries
run_tests.bat
IF %errorlevel% NEQ 0 exit /b %errorlevel%
git submodule init
git submodule update --remote
mkdir rel
cd rel
del *.exe
set ARCHITECTURE=x32
set ARCH_VS=
set STRING_ARCH=32-Bit
......@@ -24,3 +30,38 @@ set GLEW_LIBRARY_DIR=C:\libs\VS2015\%ARCHITECTURE%\glew-1.13.0\lib\glew32.lib
set CMAKE_CONFIGURATION=%QT_BASE_CONFIG% -DGLUT_INCLUDE_DIR="%GLUT_INCLUDE_DIR%" -DGLUT_glut_LIBRARY="%GLUT_GLUT_LIBRARY%" -DGLEW_INCLUDE_DIR="%GLEW_INCLUDE_DIR%" -DGLEW_LIBRARY="%GLEW_LIBRARY_DIR%"
"C:\Program Files (x86)\CMake\bin\cmake.exe" -DGTEST_PREFIX="%LIBPATH_BASE%\%ARCHITECTURE%\%GTESTVERSION%" -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DOPENFLIPPER_BUILD_UNIT_TESTS=TRUE %CMAKE_CONFIGURATION% ..
IF %errorlevel% NEQ 0 exit /b %errorlevel%
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "ALL_BUILD"
IF %errorlevel% NEQ 0 exit /b %errorlevel%
set BUILD_PLATFORM=VS2015
del *.exe
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "PACKAGE"
IF %errorlevel% NEQ 0 exit /b %errorlevel%
move OpenFlipper-*.exe "OpenFlipper-Free-Git-Master-%CI_BUILD_REF%-%BUILD_PLATFORM%-%STRING_ARCH%-%QT_VERSION%.exe"
cd tests
copy ..\Build\Qt*.dll testBinaries
copy ..\Build\icu*.dll testBinaries
run_tests.bat
IF %errorlevel% NEQ 0 exit /b %errorlevel%
git submodule init
git submodule update --remote
mkdir rel
cd rel
del *.exe
set ARCHITECTURE=x64
set ARCH_VS= Win64
set STRING_ARCH=64-Bit
......@@ -24,3 +30,38 @@ set GLEW_LIBRARY_DIR=C:\libs\VS2015\%ARCHITECTURE%\glew-1.13.0\lib\glew32.lib
set CMAKE_CONFIGURATION=%QT_BASE_CONFIG% -DGLUT_INCLUDE_DIR="%GLUT_INCLUDE_DIR%" -DGLUT_glut_LIBRARY="%GLUT_GLUT_LIBRARY%" -DGLEW_INCLUDE_DIR="%GLEW_INCLUDE_DIR%" -DGLEW_LIBRARY="%GLEW_LIBRARY_DIR%"
"C:\Program Files (x86)\CMake\bin\cmake.exe" -DGTEST_PREFIX="%LIBPATH_BASE%\%ARCHITECTURE%\%GTESTVERSION%" -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DOPENFLIPPER_BUILD_UNIT_TESTS=TRUE %CMAKE_CONFIGURATION% ..
IF %errorlevel% NEQ 0 exit /b %errorlevel%
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "ALL_BUILD"
IF %errorlevel% NEQ 0 exit /b %errorlevel%
set BUILD_PLATFORM=VS2015
del *.exe
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "PACKAGE"
IF %errorlevel% NEQ 0 exit /b %errorlevel%
move OpenFlipper-*.exe "OpenFlipper-Free-Git-Master-%CI_BUILD_REF%-%BUILD_PLATFORM%-%STRING_ARCH%-%QT_VERSION%.exe"
cd tests
copy ..\Build\Qt*.dll testBinaries
copy ..\Build\icu*.dll testBinaries
run_tests.bat
IF %errorlevel% NEQ 0 exit /b %errorlevel%
cd rel
set VS_PATH="C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com"
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "ALL_BUILD"
cd rel
set VS_PATH="C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com"
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "ALL_BUILD"
cd rel
set VS_PATH="C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com"
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "ALL_BUILD"
cd rel
set STRING_ARCH=64-Bit
set BUILD_PLATFORM=VS2013
set QT_VERSION=5.5.1
set VS_PATH="C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com"
del *.exe
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "PACKAGE"
move OpenFlipper-*.exe "OpenFlipper-Free-Git-Master-%GIT_COMMIT%-%BUILD_PLATFORM%-%STRING_ARCH%-%QT_VERSION%.exe"
cd rel
set STRING_ARCH=32-Bit
set BUILD_PLATFORM=VS2015
set QT_VERSION=5.6.0
set VS_PATH="C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com"
del *.exe
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "PACKAGE"
move OpenFlipper-*.exe "OpenFlipper-Free-Git-Master-%GIT_COMMIT%-%BUILD_PLATFORM%-%STRING_ARCH%-%QT_VERSION%.exe"
cd rel
set STRING_ARCH=64-Bit
set BUILD_PLATFORM=VS2015
set QT_VERSION=5.6.0
set VS_PATH="C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com"
del *.exe
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "PACKAGE"
move OpenFlipper-*.exe "OpenFlipper-Free-Git-Master-%GIT_COMMIT%-%BUILD_PLATFORM%-%STRING_ARCH%-%QT_VERSION%.exe"
cd rel
cd tests
copy ..\Build\Qt*.dll testBinaries
copy ..\Build\icu*.dll testBinaries
run_tests.bat
cd rel
cd tests
copy ..\Build\Qt*.dll testBinaries
copy ..\Build\icu*.dll testBinaries
run_tests.bat
cd rel
cd tests
copy ..\Build\Qt*.dll testBinaries
copy ..\Build\icu*.dll testBinaries
run_tests.bat
properties properties: [[$class: 'GitLabConnectionProperty', gitLabConnection: 'graphics']]
parallel(
'VS2015 Qt-5.6.0 x64': {
node ('Qt5.6.0 && VS2015 ') {
String VisualStudio = 'VS2015';
String QtVersion = 'Qt-5.6.0';
String Arch = 'x64';
String name = VisualStudio + ' ' + QtVersion + ' ' + Arch;
String stageName = VisualStudio + '-' + QtVersion + '-' + Arch;
// Create a workspace that contains Project and branch name
// Required to get a shorter name working around max pathlength on windows
ws("workspace/${env.JOB_NAME.replaceAll('/', '-')}/"+stageName) {
stage('Checkout - ' + name) {
// Configured in jenkins !!
checkout scm
}
// Extract the current commit id and pass it to the environments
String GITCOMMIT = bat( script: 'git rev-parse HEAD', returnStdout: true).trim().tokenize(' ').last().trim()
env.GIT_COMMIT=GITCOMMIT
gitlabCommitStatus {
stage('Configure - ' + name ) {
bat 'JI\\Configure-'+stageName+'.bat'
}
stage('Build - ' + name) {
bat 'JI\\Build-'+stageName+'.bat'
}
stage('Test - ' + name ) {
bat 'JI\\Test-'+stageName+'.bat'
}
stage('Package - ' + name ) {
bat 'JI\\Package-'+stageName+'.bat'
}
}
archiveArtifacts artifacts: '**/rel/*.exe', fingerprint: true
}
}
} ,
'VS2015 Qt-5.6.0 x32': {
node ('Qt5.6.0 && VS2015') {
String VisualStudio = 'VS2015';
String QtVersion = 'Qt-5.6.0';
String Arch = 'x32';
String name = VisualStudio + ' ' + QtVersion + ' ' + Arch;
String stageName = VisualStudio + '-' + QtVersion + '-' + Arch;
// Create a workspace that contains Project and branch name
// Required to get a shorter name working around max pathlength on windows
ws("workspace/${env.JOB_NAME.replaceAll('/', '-')}/"+stageName) {
stage('Checkout - ' + name) {
// Configured in jenkins !!
checkout scm
}
// Extract the current commit id and pass it to the environments
String GITCOMMIT = bat( script: 'git rev-parse HEAD', returnStdout: true).trim().tokenize(' ').last().trim()
env.GIT_COMMIT=GITCOMMIT
stage('Configure - ' + name ) {
bat 'JI\\Configure-'+stageName+'.bat'
}
stage('Build - ' + name ) {
bat 'JI\\Build-'+stageName+'.bat'
}
stage('Test - ' + name ) {
bat 'JI\\Test-'+stageName+'.bat'
}
stage('Package - ' + name ) {
bat 'JI\\Package-'+stageName+'.bat'
}
archiveArtifacts artifacts: '**/rel/*.exe', fingerprint: true
}
}
} ,
'VS2013 Qt-5.5.1 x64': {
node ('Qt5.5.1 && VS2013 ') {
String VisualStudio = 'VS2013';
String QtVersion = 'Qt-5.5.1';
String Arch = 'x64';
String name = VisualStudio + ' ' + QtVersion + ' ' + Arch;
String stageName = VisualStudio + '-' + QtVersion + '-' + Arch;
// Create a workspace that contains Project and branch name
// Required to get a shorter name working around max pathlength on windows
ws("workspace/${env.JOB_NAME.replaceAll('/', '-')}/"+stageName) {
stage('Checkout - ' + name) {
// Configured in jenkins !!
checkout scm
}
// Extract the current commit id and pass it to the environments
String GITCOMMIT = bat( script: 'git rev-parse HEAD', returnStdout: true).trim().tokenize(' ').last().trim()
env.GIT_COMMIT=GITCOMMIT
stage('Configure - ' + name ) {
bat 'JI\\Configure-'+stageName+'.bat'
}
stage('Build - ' + name ) {
bat 'JI\\Build-'+stageName+'.bat'
}
stage('Test - ' + name ) {
bat 'JI\\Test-'+stageName+'.bat'
}
stage('Package - ' + name ) {
bat 'JI\\Package-'+stageName+'.bat'
}
archiveArtifacts artifacts: '**/rel/*.exe', fingerprint: true
}
}
}
)
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