Commit c4fc8459 authored by Joerg Hampel's avatar Joerg Hampel 🕺🏼

adds config for CI automation

parent 58d02fd4
variables:
# predefined environment variables (see https://docs.gitlab.com/ee/ci/variables/README.html)
# CI_PROJECT_DIR The full path where the repository is cloned and where the job is run.
# CI_PROJECT_ID The unique id of the current project that GitLab CI uses internally
# CI_PROJECT_NAME The project name that is currently being built (actually it is project folder name)
# CI_PROJECT_NAMESPACE The project namespace (username or groupname) that is currently being built
# CI_PROJECT_PATH The namespace with project name
# CI_PROJECT_PATH_SLUG $CI_PROJECT_PATH lowercased and with everything except 0-9 and a-z replaced with -. Use in URLs and domain names.
# GITLAB_USER_EMAIL The email of the user who started the job
# variables from gitlab-runner (config.toml)
# TOOLS_FOLDER
# variables for this script
#use always the latest commit if the following line is commented out
#LABVIEW_RAT_VERSION: "vX.Y.Z"
LABVIEW_RAT_PATH: "\\release-automation-tools\\_dist\\LV"
EMAIL_SERVER: "mailrelay.edis.at:587"
EMAIL_ADDR: "[email protected]"
EMAIL_USER: "[email protected]"
#EMAIL_PASSWORD is defined in GitLab group secret variables
# variables for project "LIB"
LIB_PROJECT: "/HSE-Layout.lvproj"
LIB_PROJECT_TARGET: "My Computer"
LIB_PROJECT_BUILDSPEC: "hse_source_dist"
LIB_INIT_DEPENDENCIES: ""
LIB_NLZR_CONFIG: "rat-analyzr.cfg"
LIB_NLZR_ONLYCHANGES: "TRUE"
LIB_NLZR_PUBLISHFAIL: "FALSE"
LIB_NLZR_EMAILRESULTS: "TRUE"
LIB_BLDR_UPDATEVIDESC: "TRUE"
LIB_BLDR_UPDATEMAINBD: "TRUE"
LIB_BLDR_COMPANY: "HAMPEL SOFTWARE ENGINEERING"
LIB_BLDR_WEBSITE: "www.hampel-soft.com"
LIB_PKGR_TEMPLATE: ""
LIB_DPLR_DESTINATION: "\\COMP-NAS\\web\\releases"
LIB_DPLR_NAMESPACE: ""
stages:
- setup
- init
- test
- build
- distribute
# ################################################################################
# LabVIEW 2016
# ################################################################################
SetupTools2016:
stage: setup
script:
- rmdir %TOOLS_FOLDER% /s /q
- git clone [email protected]:hampel-soft/hse-labs/release-automation-tools.git %TOOLS_FOLDER%\release-automation-tools
#- git -C %TOOLS_FOLDER%\release-automation-tools checkout tags/%LABVIEW_RAT_VERSION%
only:
- /^v[0-9]+\.[0-9]+\..+$/
tags:
- "2016"
Dependencies2016:
stage: init
script:
- g-cli --kill --timeout 30000 -v --lv-ver 2016 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2016\rat-initializr\rat-initializr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
only:
- /^v[0-9]+\.[0-9]+\..+$/
tags:
- "2016"
Analyzr2016:
stage: test
script:
- g-cli --kill --timeout 30000 -v --lv-ver 2016 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2016\rat-analyzr\rat-analyzr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
artifacts:
paths:
- artifacts/
only:
- /^v[0-9]+\.[0-9]+\..+$/
tags:
- "2016"
Buildr2016:
stage: build
script:
# Build (execute buildspec)
- g-cli --kill --timeout 30000 -v --lv-ver 2016 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2016\rat-buildr\rat-buildr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
only:
- /^v[0-9]+\.[0-9]+\..+$/
tags:
- "2016"
PackagrDeployr2016:
stage: distribute
script:
# Package (create .zip archive of project)
- ping 127.0.0.1 -n 5 -w 1000 >NUL
- g-cli --kill --timeout 30000 -v --lv-ver 2016 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2016\rat-packagr\rat-packagr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
# Deploy (copy package to shared folder)
- g-cli --kill --timeout 30000 -v --lv-ver 2016 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2016\rat-deployr\rat-deployr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
# Release (publish on webserver)
- rem g-cli --kill --timeout 30000 -v --lv-ver 2016 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2016\rat-releasr\rat-releasr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
only:
- /^v[0-9]+\.[0-9]+\..+$/
tags:
- "2016"
# ################################################################################
# LabVIEW 2018
# ################################################################################
SetupTools2018:
stage: setup
script:
- rmdir %TOOLS_FOLDER% /s /q
- git clone [email protected]:hampel-soft/hse-labs/release-automation-tools.git %TOOLS_FOLDER%\release-automation-tools
#- git -C %TOOLS_FOLDER%\release-automation-tools checkout tags/%LABVIEW_RAT_VERSION%
only:
- /^v[0-9]+\.[0-9]+\..+$/
tags:
- "2018"
Dependencies2018:
stage: init
script:
- g-cli --kill --timeout 30000 -v --lv-ver 2018 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2018\rat-initializr\rat-initializr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
only:
- /^v[0-9]+\.[0-9]+\..+$/
tags:
- "2018"
Analyzr2018:
stage: test
script:
- g-cli --kill --timeout 30000 -v --lv-ver 2018 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2018\rat-analyzr\rat-analyzr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
artifacts:
paths:
- artifacts/
only:
- /^v[0-9]+\.[0-9]+\..+$/
tags:
- "2018"
Buildr2018:
stage: build
script:
# Build (execute buildspec)
- g-cli --kill --timeout 30000 -v --lv-ver 2018 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2018\rat-buildr\rat-buildr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
only:
- /^v[0-9]+\.[0-9]+\..+$/
tags:
- "2018"
PackagrDeployr2018:
stage: distribute
script:
# Package (create .zip archive of project)
- ping 127.0.0.1 -n 5 -w 1000 >NUL
- g-cli --kill --timeout 30000 -v --lv-ver 2018 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2018\rat-packagr\rat-packagr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
# Deploy (copy package to shared folder)
- g-cli --kill --timeout 30000 -v --lv-ver 2018 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2018\rat-deployr\rat-deployr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
# Release (publish on webserver)
- rem g-cli --kill --timeout 30000 -v --lv-ver 2018 "%TOOLS_FOLDER%%LABVIEW_RAT_PATH%2018\rat-releasr\rat-releasr.vi" -- "%CI_PROJECT_DIR%" "%CI_PROJECT_NAMESPACE%" LIB
only:
- /^v[0-9]+\.[0-9]+\..+$/
tags:
- "2018"
......@@ -27,10 +27,10 @@
</Item>
</Item>
<Item Name="Build Specifications" Type="Build">
<Item Name="HS LM Sources Dist" Type="Source Distribution">
<Item Name="hse_source_dist" Type="Source Distribution">
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{C858086A-B214-4DE9-9893-6BB791C035CD}</Property>
<Property Name="Bld_buildSpecName" Type="Str">HS LM Sources Dist</Property>
<Property Name="Bld_buildSpecName" Type="Str">hse_source_dist</Property>
<Property Name="Bld_excludedDirectory[0]" Type="Path">vi.lib</Property>
<Property Name="Bld_excludedDirectory[0].pathType" Type="Str">relativeToAppDir</Property>
<Property Name="Bld_excludedDirectory[1]" Type="Path">resource/objmgr</Property>
......@@ -42,20 +42,18 @@
<Property Name="Bld_excludedDirectory[5]" Type="Path">user.lib</Property>
<Property Name="Bld_excludedDirectory[5].pathType" Type="Str">relativeToAppDir</Property>
<Property Name="Bld_excludedDirectoryCount" Type="Int">6</Property>
<Property Name="Bld_localDestDir" Type="Path">../_build/hse-layout-manager</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/hse-layout-manager</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_previewCacheID" Type="Str">{520C8DAC-57F3-4FF8-897B-CC70FC31A68F}</Property>
<Property Name="Bld_version.build" Type="Int">4</Property>
<Property Name="Bld_version.build" Type="Int">5</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Destination Directory</Property>
<Property Name="Destination[0].path" Type="Path">../_build/hse-layout-manager</Property>
<Property Name="Destination[0].path.type" Type="Str">relativeToProject</Property>
<Property Name="Destination[0].path" Type="Path">../builds/hse-layout-manager</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../_build/hse-layout-manager/data</Property>
<Property Name="Destination[1].path.type" Type="Str">relativeToProject</Property>
<Property Name="Destination[1].path" Type="Path">../builds/hse-layout-manager/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Source[0].itemID" Type="Str">{BC8D6BDF-977E-46A3-AAB2-52368F18D287}</Property>
<Property Name="Source[0].itemID" Type="Str">{42B57C34-3641-4875-8059-86FA6BB0A8D6}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].Container.applyInclusion" Type="Bool">true</Property>
<Property Name="Source[1].Container.depDestIndex" Type="Int">0</Property>
......
Copyright (c) 2017-2019, Hampel Software Engineering
All rights reserved.
Redistribution of this library in source form to third parties is prohibited.
Use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:
* Any product using this library will include in its About Box or other
applicable written documentation the notice that the given product
"Includes hse-libraries, © (year) HAMPEL SOFTWARE ENGINEERING. All rights
reserved."
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
File added
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