.gitlab-ci.yml 765 Bytes
Newer Older
Markus Frosch's avatar
Markus Frosch committed
1
2
3
4
5
stages:
  - build

variables:
  #BITS: 32 or 64
Markus Frosch's avatar
Markus Frosch committed
6
7
8
9
  # for more vars see build.ps1
  #CMAKE_BUILD_TYPE: RelWithDebInfo
  CMAKE_BUILD_TYPE: Debug
  UPSTREAM_GIT_BRANCH: tools/windows
Markus Frosch's avatar
Markus Frosch committed
10
11
12
13

.build: &build
  stage: build
  tags:
Markus Frosch's avatar
Markus Frosch committed
14
    - windows
Markus Frosch's avatar
Markus Frosch committed
15
  script:
Markus Frosch's avatar
Markus Frosch committed
16
    - del *.msi *.nupkg *.nuspec
Markus Frosch's avatar
Markus Frosch committed
17
18
    - powershell.exe .\source.ps1
    - powershell.exe .\build.ps1
Markus Frosch's avatar
Markus Frosch committed
19
20
    - copy icinga2\Build\Icinga*.msi icinga2\Build\choco\*.nuspec icinga2\Build\choco\*.nupkg .\
    # TODO: rename msi to upload standard
Markus Frosch's avatar
Markus Frosch committed
21
22
23
  cache:
    key: "${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
    paths:
Markus Frosch's avatar
Markus Frosch committed
24
25
26
      - icinga2\
  artifacts:
    paths:
Markus Frosch's avatar
Markus Frosch committed
27
28
29
      - 'Icinga*.msi'
      - '*.nupkg'
      - '*.nuspec'
Markus Frosch's avatar
Markus Frosch committed
30
    expire_in: 1 week
Markus Frosch's avatar
Markus Frosch committed
31
32
33
34
35
36
37
38
39
40

Win32:
  <<: *build
  variables:
    BITS: 32

Win64:
  <<: *build
  variables:
    BITS: 64