Skip to content

Commit bef2741

Browse files
committed
Merge branch 'master' into deploy-token
2 parents efa4982 + a9f493f commit bef2741

File tree

585 files changed

+32670
-13166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

585 files changed

+32670
-13166
lines changed

.github/workflows/acceptance-tests.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ on: [push,pull_request]
33

44
jobs:
55
acceptance-ce:
6+
timeout-minutes: 60
67
runs-on: ubuntu-latest
78
steps:
89
- name: Set up Go
910
uses: actions/setup-go@v1
1011
with:
11-
go-version: 1.12
12+
go-version: 1.14
1213
id: go
1314

1415
- name: Check out code repository source code
@@ -27,3 +28,40 @@ jobs:
2728
run: |
2829
bash scripts/start-gitlab.sh
2930
make $MAKE_TARGET
31+
32+
acceptance-ee:
33+
timeout-minutes: 60
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Set up Go
37+
uses: actions/setup-go@v1
38+
with:
39+
go-version: 1.14
40+
id: go
41+
42+
- name: Check out code repository source code
43+
uses: actions/checkout@v2
44+
45+
- name: Set up Enterprise Edition License file
46+
run: |
47+
openssl version
48+
mkdir license
49+
[[ -n "${{ secrets.ENCRYPT_PASSWORD }}" ]] && echo decrypt
50+
[[ -n "${{ secrets.ENCRYPT_PASSWORD }}" ]] && openssl enc -d -aes-256-cbc -pbkdf2 -iter 20000 -in Gitlab-license.encrypted -out license/Gitlab-license.txt -pass "pass:${{ secrets.ENCRYPT_PASSWORD }}"
51+
chmod 666 license/Gitlab-license.txt || true
52+
echo "::set-env name=GITLAB_LICENSE_FILE::Gitlab-license.txt"
53+
54+
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions
55+
- name: Set build variables
56+
run: |
57+
echo "::set-env name=MAKE_TARGET::testacc"
58+
echo "::set-env name=GO_FLAGS::-mod=vendor"
59+
echo "::set-env name=GO111MODULE::on"
60+
echo "::set-env name=GITLAB_TOKEN::20char-testing-token"
61+
echo "::set-env name=GITLAB_BASE_URL::http://127.0.0.1:8080/api/v4"
62+
echo "::set-env name=TF_LOG::DEBUG"
63+
64+
- name: Start Gitlab and run acceptance tests
65+
run: |
66+
bash scripts/start-gitlab.sh
67+
make $MAKE_TARGET

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
go: [1.12, 1.13, 1.14]
10+
go: [1.13, 1.14]
1111
os: [ubuntu-latest, macos-latest, windows-latest]
1212
make_target: [test, vet]
1313

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- name: Set up Go
1010
uses: actions/setup-go@v1
1111
with:
12-
go-version: 1.12
12+
go-version: 1.14
1313
id: go
1414

1515
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ website/vendor
3030
!command/test-fixtures/**/*.tfstate
3131
!command/test-fixtures/**/.terraform/
3232

33-
license/JulienPivotto.gitlab-license
33+
license/*

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.5
1+
1.14.1

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1-
## 2.5.1 (Unreleased)
1+
## 2.7.0 (Unreleased)
2+
## 2.6.0 (April 08, 2020)
3+
4+
ENHANCEMENTS:
5+
* Add jira flags
6+
([[#274](https://github.com/terraform-providers/terraform-provider-gitlab/issues/274)])
7+
8+
## 2.5.1 (April 06, 2020)
9+
10+
BUGFIXES:
11+
* Support for soft-delete of groups and projects in Gitlab Enterprise Edition
12+
([#282](https://github.com/terraform-providers/terraform-provider-gitlab/issues/282),
13+
[#283](https://github.com/terraform-providers/terraform-provider-gitlab/issues/283),
14+
[#285](https://github.com/terraform-providers/terraform-provider-gitlab/issues/285),
15+
[#291](https://github.com/terraform-providers/terraform-provider-gitlab/issues/291))
16+
17+
ENHANCEMENTS:
18+
* Switched from Travis CI to Github Actions
19+
([#216](https://github.com/terraform-providers/terraform-provider-gitlab/issues/216))
20+
221
## 2.5.0 (December 05, 2019)
322

423
ENHANCEMENTS:

GNUmakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
TEST?=$$(go list ./... |grep -v 'vendor')
1+
TEST?=./gitlab
22
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
33
WEBSITE_REPO=github.com/hashicorp/terraform-website
44
PKG_NAME=gitlab
@@ -14,7 +14,7 @@ test: fmtcheck
1414
xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4
1515

1616
testacc: fmtcheck
17-
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m
17+
TF_ACC=1 go test -v $(TEST) $(TESTARGS) -timeout 40m
1818

1919
vet:
2020
@echo "go vet ."

Gitlab-license.encrypted

1.63 KB
Binary file not shown.

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1+
<img src="https://cdn.rawgit.com/hashicorp/terraform-website/master/content/source/assets/images/logo-hashicorp.svg" width="600px">
2+
13
Terraform Provider for Gitlab
24
=============================
35

46
- [Documentation](https://www.terraform.io/docs/providers/gitlab/index.html)
57
- [![Gitter chat](https://badges.gitter.im/hashicorp-terraform/Lobby.png)](https://gitter.im/hashicorp-terraform/Lobby)
68
- Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)
79
- Build status:
8-
- ![Unit Tests](https://github.com/terraform-providers/terraform-provider-gitlab/workflows/Unit%20Tests/badge.svg)
9-
- ![Acceptance Tests](https://github.com/terraform-providers/terraform-provider-gitlab/workflows/Acceptance%20Tests/badge.svg)
10-
- ![Website Build](https://github.com/terraform-providers/terraform-provider-gitlab/workflows/Website%20Build/badge.svg)
11-
12-
13-
<img src="https://cdn.rawgit.com/hashicorp/terraform-website/master/content/source/assets/images/logo-hashicorp.svg" width="600px">
10+
- ![Unit Tests](https://github.com/terraform-providers/terraform-provider-gitlab/workflows/Unit%20Tests/badge.svg?branch=master)
11+
- ![Acceptance Tests](https://github.com/terraform-providers/terraform-provider-gitlab/workflows/Acceptance%20Tests/badge.svg?branch=master)
12+
- ![Website Build](https://github.com/terraform-providers/terraform-provider-gitlab/workflows/Website%20Build/badge.svg?branch=master)
1413

1514
Requirements
1615
------------
1716

1817
- [Terraform](https://www.terraform.io/downloads.html) 0.12.x
19-
- [Go](https://golang.org/doc/install) 1.12 (to build the provider plugin)
18+
- [Go](https://golang.org/doc/install) >= 1.13 (to build the provider plugin)
2019

2120
Building The Provider
2221
---------------------

0 commit comments

Comments
 (0)