-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy path.gitlab-ci.yml
46 lines (39 loc) · 1.02 KB
/
.gitlab-ci.yml
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
38
39
40
41
42
43
44
45
stages:
- build
- test_v15
- test_v14
terraformbuild:
tags:
- terraform
stage: build
before_script:
- rm -rf /terraform_builds/
- mkdir -p /terraform_builds/
script:
- echo "build terraform binary"
- make fmt
- go build
- ls -lrt
after_script:
- cp terraform-provider-bigip /terraform_builds/
terraformv15:
tags:
- terraform
stage: test_v15
before_script:
- cp -r /terraform_builds/terraform-provider-bigip .
- ls -lrt
script:
- echo "Running tests on bigip version 15"
- BIGIP_USER="$BIGIP_USERNAME_V15" BIGIP_PASSWORD="$BIGIP_PASSWORD_V15" BIGIP_HOST="$BIGIP_HOST_V15" TF_ACC=1 make testacc
allow_failure: true
terraformv14:
tags:
- terraform
stage: test_v14
before_script:
- cp -r /terraform_builds/terraform-provider-bigip .
- ls -lrt
script:
- echo "Running tests on bigip version 14"
- BIGIP_USER="$BIGIP_USERNAME_V14" BIGIP_PASSWORD="$BIGIP_PASSWORD_V14" BIGIP_HOST="$BIGIP_HOST_V14" TF_ACC=1 make testacc