forked from ovh/terraform-provider-ovh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cds CI files for acceptance tests
- Loading branch information
yann degat
committed
Nov 18, 2020
1 parent
684a7c0
commit bdcda64
Showing
5 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |