Skip to content

Commit 46f0202

Browse files
committed
Merge branch 'master' into deploy-token
2 parents 3892165 + 794b87e commit 46f0202

File tree

8 files changed

+107
-44
lines changed

8 files changed

+107
-44
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* -text
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Acceptance Tests
2+
on: [push,pull_request]
3+
4+
jobs:
5+
acceptance-ce:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Set up Go
9+
uses: actions/setup-go@v1
10+
with:
11+
go-version: 1.12
12+
id: go
13+
14+
- name: Check out code repository source code
15+
uses: actions/checkout@v2
16+
17+
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions
18+
- name: Set build variables
19+
run: |
20+
echo "::set-env name=MAKE_TARGET::testacc"
21+
echo "::set-env name=GO_FLAGS::-mod=vendor"
22+
echo "::set-env name=GO111MODULE::on"
23+
echo "::set-env name=GITLAB_TOKEN::20char-testing-token"
24+
echo "::set-env name=GITLAB_BASE_URL::http://127.0.0.1:8080/api/v4"
25+
26+
- name: Start Gitlab and run acceptance tests
27+
run: |
28+
bash scripts/start-gitlab.sh
29+
make $MAKE_TARGET

.github/workflows/unit-tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Unit Tests
2+
on: [push,pull_request]
3+
4+
jobs:
5+
test:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
go: [1.12, 1.13, 1.14]
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
make_target: [test, vet]
13+
14+
steps:
15+
- name: Set up Go
16+
uses: actions/setup-go@v1
17+
with:
18+
go-version: ${{ matrix.go }}
19+
id: go
20+
21+
- name: Check out code repository source code
22+
uses: actions/checkout@v2
23+
24+
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions
25+
- name: Set build variables
26+
run: |
27+
echo "::set-env name=MAKE_TARGET::${{ matrix.make_target }}"
28+
echo "::set-env name=GO_FLAGS::-mod=vendor"
29+
echo "::set-env name=GO111MODULE::on"
30+
31+
- name: Run ${{matrix.make_target}}
32+
run: |
33+
make $MAKE_TARGET

.github/workflows/website.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Website Build
2+
on: [push,pull_request]
3+
4+
jobs:
5+
website:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Set up Go
10+
uses: actions/setup-go@v1
11+
with:
12+
go-version: 1.12
13+
id: go
14+
15+
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions
16+
- name: Set Go variables for backwards compatibility
17+
run: |
18+
echo "::set-env name=GOPATH::$GITHUB_WORKSPACE/go"
19+
echo "::set-env name=GOBIN::$GITHUB_WORKSPACE/go/bin"
20+
echo "::add-path::$GITHUB_WORKSPACE/go/bin"
21+
22+
- name: Check out code repository source code
23+
uses: actions/checkout@v2
24+
with:
25+
path: go/src/github.com/${{ github.repository }}
26+
27+
- name: Run website-test
28+
run: |
29+
cd $GOPATH/src/github.com/${{ github.repository }}
30+
export MAKE_TARGET=${{ matrix.make_target }}
31+
export GOFLAGS=-mod=vendor
32+
export GO111MODULE=on
33+
make website-test

.travis.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,13 @@ language: go
22
matrix:
33
fast_finish: false
44
include:
5-
- name: unit tests
6-
env: MAKE_TARGET=test GOFLAGS=-mod=vendor GO111MODULE=on
7-
go: "1.12.x"
85
- name: acceptance tests EE
96
env: MAKE_TARGET=testacc GITLAB_LICENSE_FILE=JulienPivotto.gitlab-license GOFLAGS=-mod=vendor GO111MODULE=on GITLAB_BASE_URL=http://127.0.0.1:8080/api/v4 GITLAB_TOKEN=ACCTEST
107
go: "1.12.x"
118
- name: acceptance tests CE
129
env: MAKE_TARGET=testacc GOFLAGS=-mod=vendor GO111MODULE=on GITLAB_BASE_URL=http://127.0.0.1:8080/api/v4 GITLAB_TOKEN=ACCTEST
1310
go: "1.12.x"
14-
- name: govet tests
15-
env: MAKE_TARGET=vet GOFLAGS=-mod=vendor GO111MODULE=on
16-
go: "1.12.x"
17-
- name: website tests
18-
env: MAKE_TARGET=website-test GOFLAGS=-mod=vendor GO111MODULE=on
19-
go: "1.12.x"
20-
- name: unit tests (go 1.12)
21-
env: MAKE_TARGET=test GOFLAGS=-mod=vendor GO111MODULE=on
22-
go: "1.13.x"
23-
- name: unit tests (go tip)
24-
env: MAKE_TARGET=test GOFLAGS=-mod=vendor GO111MODULE=on
25-
go: tip
2611
allow_failures:
27-
- name: unit tests (go tip)
28-
env: MAKE_TARGET=test GOFLAGS=-mod=vendor GO111MODULE=on
29-
go: tip
30-
- name: unit tests (go 1.12)
31-
env: MAKE_TARGET=test GOFLAGS=-mod=vendor GO111MODULE=on
32-
go: "1.13.x"
3312
- name: acceptance tests EE
3413
env: MAKE_TARGET=testacc GITLAB_LICENSE_FILE=JulienPivotto.gitlab-license GOFLAGS=-mod=vendor GO111MODULE=on GITLAB_BASE_URL=http://127.0.0.1:8080/api/v4 GITLAB_TOKEN=ACCTEST
3514
go: "1.12.x"

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
Terraform Provider
2-
==================
1+
Terraform Provider for Gitlab
2+
=============================
33

4-
- Website: https://www.terraform.io
4+
- [Documentation](https://www.terraform.io/docs/providers/gitlab/index.html)
55
- [![Gitter chat](https://badges.gitter.im/hashicorp-terraform/Lobby.png)](https://gitter.im/hashicorp-terraform/Lobby)
66
- Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)
7+
- 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+
712

813
<img src="https://cdn.rawgit.com/hashicorp/terraform-website/master/content/source/assets/images/logo-hashicorp.svg" width="600px">
914

1015
Requirements
1116
------------
1217

13-
- [Terraform](https://www.terraform.io/downloads.html) 0.10.x
14-
- [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin)
18+
- [Terraform](https://www.terraform.io/downloads.html) 0.12.x
19+
- [Go](https://golang.org/doc/install) 1.12 (to build the provider plugin)
1520

1621
Building The Provider
1722
---------------------

go.sum

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,9 @@ github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6Ac
220220
github.com/vmihailenco/msgpack v4.0.1+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
221221
github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI=
222222
github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
223-
github.com/xanzy/go-gitlab v0.22.2 h1:KYPewSm3Tl7WHrVON7BOwX6FZ1gaiFEdpOt0DNIYySA=
224-
github.com/xanzy/go-gitlab v0.22.2/go.mod h1:t4Bmvnxj7k37S4Y17lfLx+nLqkf/oQwT2HagfWKv5Og=
225-
github.com/xanzy/go-gitlab v0.22.3 h1:/rNlZ2hquUWNc6rJdntVM03tEOoTmnZ1lcNyJCl0WlU=
226-
github.com/xanzy/go-gitlab v0.22.3/go.mod h1:t4Bmvnxj7k37S4Y17lfLx+nLqkf/oQwT2HagfWKv5Og=
227-
github.com/xanzy/go-gitlab v0.28.1-0.20200316171023-390fda840a9c h1:tO2lQ5cSDK3QXVf7utVpuyf77wTGnIC6LDQZp0zpxOw=
228-
github.com/xanzy/go-gitlab v0.28.1-0.20200316171023-390fda840a9c/go.mod h1:t4Bmvnxj7k37S4Y17lfLx+nLqkf/oQwT2HagfWKv5Og=
229223
github.com/xanzy/go-gitlab v0.29.0 h1:9tMvAkG746eIlzcdpnRgpcKPA1woUDmldMIjR/E5OWM=
230224
github.com/xanzy/go-gitlab v0.29.0/go.mod h1:sPLojNBn68fMUWSxIJtdVVIP8uSBYqesTfDUseX11Ug=
231225
github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
232-
github.com/zclconf/go-cty v1.1.0 h1:uJwc9HiBOCpoKIObTQaLR+tsEXx1HBHnOsOOpcdhZgw=
233226
github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
234227
github.com/zclconf/go-cty v1.1.1 h1:Shl2p9Dat0cqJfXu0DZa+cOTRPhXQjK8IYWD6GVfiqo=
235228
github.com/zclconf/go-cty v1.1.1/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
@@ -261,7 +254,6 @@ golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTk
261254
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
262255
golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
263256
golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
264-
golang.org/x/lint v0.0.0-20190930215403-16217165b5de h1:5hukYrvBGR8/eNkX5mdUezrA6JiaEZDtJb9Ei+1LlBs=
265257
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
266258
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f h1:J5lckAjkw6qYlOZNj90mLYNTEKDvWeuc1yieZ8qUzUE=
267259
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
@@ -282,21 +274,12 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn
282274
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
283275
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
284276
golang.org/x/net v0.0.0-20191009170851-d66e71096ffb/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
285-
golang.org/x/net v0.0.0-20191204025024-5ee1b9f4859a h1:+HHJiFUXVOIS9mr1ThqkQD1N8vpFCfCShqADBM12KTc=
286-
golang.org/x/net v0.0.0-20191204025024-5ee1b9f4859a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
287-
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa h1:F+8P+gmewFQYRk6JoLQLwjBCTu3mcIURZfNkVweuRKA=
288-
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
289-
golang.org/x/net v0.0.0-20200301022130-244492dfa37a h1:GuSPYbZzB5/dcLNCwLQLsg3obCJtX9IJhpXkvY7kzk0=
290-
golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
291277
golang.org/x/net v0.0.0-20200320220750-118fecf932d8 h1:1+zQlQqEEhUeStBTi653GZAnAuivZq/2hz+Iz+OP7rg=
292278
golang.org/x/net v0.0.0-20200320220750-118fecf932d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
293279
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
294280
golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
295281
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
296-
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0=
297282
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
298-
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6 h1:pE8b58s1HRDMi8RDc79m0HISf9D4TzseP40cEA6IGfs=
299-
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
300283
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw=
301284
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
302285
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=

website/docs/r/group.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ resource "gitlab_group" "example" {
2424
resource "gitlab_project" "example" {
2525
name = "example"
2626
description = "An example project"
27-
parent_id = "${gitlab_group.example.id}"
27+
namespace_id = "${gitlab_group.example.id}"
2828
}
2929
```
3030

0 commit comments

Comments
 (0)