Skip to content

Commit cf9f477

Browse files
author
yann degat
committed
Add cds CI files for acceptance tests
1 parent 684a7c0 commit cf9f477

5 files changed

+105
-0
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: v1.0
2+
name: terraform-provider-ovh-check
3+
jobs:
4+
- job: checks
5+
steps:
6+
- name: Get the sources of the project
7+
checkout: '{{.cds.workspace}}'
8+
- name: checks
9+
script: |
10+
#!/usr/bin/env bash
11+
set -eEuo pipefail
12+
make test
13+
make vet
14+
15+
requirements:
16+
- model: shared.infra/Go-official-1.13-buster
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: v1.0
2+
name: terraform-provider-ovh-testacc
3+
jobs:
4+
- job: checks
5+
steps:
6+
- name: Get the sources of the project
7+
checkout: '{{.cds.workspace}}'
8+
- name: run acceptance tests
9+
script: |
10+
#!/usr/bin/env bash
11+
set -eEuo pipefail
12+
make testacc
13+
14+
requirements:
15+
- model: shared.infra/Go-official-1.13-buster
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: v1.0
2+
name: terraform-provider-ovh-website-test
3+
jobs:
4+
- job: checks
5+
steps:
6+
- name: Get the sources of the project
7+
checkout: '{{.cds.workspace}}'
8+
- name: website test
9+
script: |
10+
#!/usr/bin/env bash
11+
set -eEuo pipefail
12+
GOPATH=. make website-test
13+
14+
requirements:
15+
- binary: docker

.cds/terraform-provider-ovh.app.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: v1.0
2+
name: terraform-provider-ovh
3+
vcs_server: github
4+
repo: ovh/terraform-provider-ovh
5+
vcs_connection_type: ssh
6+
vcs_ssh_key: proj-ssh-tfproviderovh
7+
vcs_pgp_key: proj-pgp-tfproviderovh

.cds/terraform-provider-ovh.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: terraform-provider-ovh
2+
version: v2.0
3+
workflow:
4+
5+
terraform-provider-ovh:
6+
application: terraform-provider-ovh
7+
8+
terraform-provider-ovh-check:
9+
pipeline: terraform-provider-ovh-check
10+
application: terraform-provider-ovh
11+
depends_on:
12+
- terraform-provider-ovh
13+
14+
terraform-provider-ovh-website-test:
15+
pipeline: terraform-provider-ovh-website-test
16+
application: terraform-provider-ovh
17+
depends_on:
18+
- terraform-provider-ovh
19+
20+
terraform-provider-ovh-testacc:
21+
pipeline: terraform-provider-ovh-testacc
22+
application: terraform-provider-ovh
23+
conditions:
24+
script: return git_branch == "master"
25+
depends_on:
26+
- terraform-provider-ovh-check
27+
28+
metadata:
29+
default_tags: git.branch,git.author
30+
31+
retention_policy: return (git_branch_exist == "false" and run_days_before < 2) or run_days_before < 365
32+
33+
hooks:
34+
terraform-provider-ovh:
35+
- type: Scheduler
36+
config:
37+
cron: 0 0 * * *
38+
payload: '{}'
39+
timezone: UTC
40+
41+
notifications:
42+
- type: vcs
43+
settings:
44+
on_success: always
45+
- type: email
46+
pipelines:
47+
- terraform-provider-ovh-testacc
48+
settings:
49+
on_success: never
50+
send_to_author: false
51+
recipients:
52+

0 commit comments

Comments
 (0)