File: .gitlab-ci.yml

package info (click to toggle)
golang-github-sap-go-hdb 0.100.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 792 kB
  • sloc: python: 27; makefile: 5
file content (37 lines) | stat: -rw-r--r-- 657 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
variables:
  GIT_STRATEGY: clone
  GIT_CHECKOUT: "true"
  CI_DEBUG_TRACE: "false"

stages:
  - build
  - test
 
build:
  stage: build
  image: golang:latest
  script:
    - cd $CI_PROJECT_DIR/driver
    - go version
    - export GOARCH=amd64
    - export GOOS=linux
    - go install
    - export GOARCH=amd64
    - export GOOS=windows
    - go install

.test_template: &test_definition
  stage: test
  script:
    - export GOHDBDSN=$GO_HANA_DSN
    - go test -v ./...
    - export GOHDBDSN=$GO_HANA_TLS_DSN
    - go test -v ./...

golang_1_13_10:
  image: golang:1.13.8
  <<: *test_definition
  
golang_1_14_2:
  image: golang:1.14.2
  <<: *test_definition