Skip to content

Commit

Permalink
Add cds CI files for acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yann degat committed Nov 18, 2020
1 parent 684a7c0 commit bdcda64
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .cds/terraform-provider-ovh-check.pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: v1.0
name: terraform-provider-ovh-check
jobs:
- job: checks
steps:
- name: Get the sources of the project
checkout: '{{.cds.workspace}}'
- name: checks
script: |
#!/usr/bin/env bash
set -eEuo pipefail
make test
make vet
requirements:
- model: shared.infra/Go-official-1.13-buster
15 changes: 15 additions & 0 deletions .cds/terraform-provider-ovh-testacc.pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: v1.0
name: terraform-provider-ovh-testacc
jobs:
- job: checks
steps:
- name: Get the sources of the project
checkout: '{{.cds.workspace}}'
- name: run acceptance tests
script: |
#!/usr/bin/env bash
set -eEuo pipefail
make testacc
requirements:
- model: shared.infra/Go-official-1.13-buster
15 changes: 15 additions & 0 deletions .cds/terraform-provider-ovh-website-test.pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: v1.0
name: terraform-provider-ovh-website-test
jobs:
- job: checks
steps:
- name: Get the sources of the project
checkout: '{{.cds.workspace}}'
- name: website test
script: |
#!/usr/bin/env bash
set -eEuo pipefail
GOPATH=. make website-test
requirements:
- binary: docker
7 changes: 7 additions & 0 deletions .cds/terraform-provider-ovh.app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: v1.0
name: terraform-provider-ovh
vcs_server: github
repo: ovh/terraform-provider-ovh
vcs_connection_type: ssh
vcs_ssh_key: proj-ssh-tfproviderovh
vcs_pgp_key: proj-pgp-tfproviderovh
53 changes: 53 additions & 0 deletions .cds/terraform-provider-ovh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: terraform-provider-ovh
version: v2.0
workflow:

terraform-provider-ovh:
application: terraform-provider-ovh

terraform-provider-ovh-check:
pipeline: terraform-provider-ovh-check
application: terraform-provider-ovh
depends_on:
- terraform-provider-ovh

terraform-provider-ovh-website-test:
pipeline: terraform-provider-ovh-website-test
application: terraform-provider-ovh
depends_on:
- terraform-provider-ovh

terraform-provider-ovh-testacc:
pipeline: terraform-provider-ovh-testacc
application: terraform-provider-ovh
environment: acctests
conditions:
script: return git_branch == "master"
depends_on:
- terraform-provider-ovh-check

metadata:
default_tags: git.branch,git.author

retention_policy: return (git_branch_exist == "false" and run_days_before < 2) or run_days_before < 365

hooks:
terraform-provider-ovh:
- type: Scheduler
config:
cron: 0 0 * * *
payload: '{}'
timezone: UTC

notifications:
- type: vcs
settings:
on_success: always
- type: email
pipelines:
- terraform-provider-ovh-testacc
settings:
on_success: never
send_to_author: false
recipients:
- [email protected]

0 comments on commit bdcda64

Please sign in to comment.