mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-24 19:10:40 +00:00
Add matrix legacy convert testdata
This commit is contained in:
parent
6a1167dbb3
commit
1c2e4e9916
19
yaml/converter/legacy/internal/testdata/matrix_1.yml
vendored
Normal file
19
yaml/converter/legacy/internal/testdata/matrix_1.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
pipeline:
|
||||
test:
|
||||
image: golang:${GO_VERSION}
|
||||
commands:
|
||||
- go test -v ./...
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis:2.6
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- GO_VERSION: 1.11
|
||||
REDIS_VERSION: 2.6
|
||||
- GO_VERSION: 1.10
|
||||
REDIS_VERSION: 2.6
|
||||
- GO_VERSION: 1.9
|
||||
REDIS_VERSION: 2.6
|
61
yaml/converter/legacy/internal/testdata/matrix_1.yml.golden
vendored
Normal file
61
yaml/converter/legacy/internal/testdata/matrix_1.yml.golden
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: matrix-1
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
pull: default
|
||||
image: golang:1.11
|
||||
commands:
|
||||
- go test -v ./...
|
||||
|
||||
services:
|
||||
- name: redis
|
||||
pull: default
|
||||
image: redis:2.6
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: matrix-2
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
pull: default
|
||||
image: golang:1.10
|
||||
commands:
|
||||
- go test -v ./...
|
||||
|
||||
services:
|
||||
- name: redis
|
||||
pull: default
|
||||
image: redis:2.6
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: matrix-3
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
pull: default
|
||||
image: golang:1.9
|
||||
commands:
|
||||
- go test -v ./...
|
||||
|
||||
services:
|
||||
- name: redis
|
||||
pull: default
|
||||
image: redis:2.6
|
||||
|
||||
...
|
19
yaml/converter/legacy/internal/testdata/matrix_2.yml
vendored
Normal file
19
yaml/converter/legacy/internal/testdata/matrix_2.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
pipeline:
|
||||
test:
|
||||
image: golang:${GO_VERSION}
|
||||
commands:
|
||||
- go test -v ./...
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis:${REDIS_VERSION}
|
||||
|
||||
matrix:
|
||||
GO_VERSION:
|
||||
- 1.11
|
||||
- 1.10
|
||||
|
||||
REDIS_VERSION:
|
||||
- 2.6
|
||||
- 2.8
|
81
yaml/converter/legacy/internal/testdata/matrix_2.yml.golden
vendored
Normal file
81
yaml/converter/legacy/internal/testdata/matrix_2.yml.golden
vendored
Normal file
@ -0,0 +1,81 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: matrix-1
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
pull: default
|
||||
image: golang:1.11
|
||||
commands:
|
||||
- go test -v ./...
|
||||
|
||||
services:
|
||||
- name: redis
|
||||
pull: default
|
||||
image: redis:2.6
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: matrix-2
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
pull: default
|
||||
image: golang:1.11
|
||||
commands:
|
||||
- go test -v ./...
|
||||
|
||||
services:
|
||||
- name: redis
|
||||
pull: default
|
||||
image: redis:2.8
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: matrix-3
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
pull: default
|
||||
image: golang:1.10
|
||||
commands:
|
||||
- go test -v ./...
|
||||
|
||||
services:
|
||||
- name: redis
|
||||
pull: default
|
||||
image: redis:2.6
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: matrix-4
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
pull: default
|
||||
image: golang:1.10
|
||||
commands:
|
||||
- go test -v ./...
|
||||
|
||||
services:
|
||||
- name: redis
|
||||
pull: default
|
||||
image: redis:2.8
|
||||
|
||||
...
|
Loading…
Reference in New Issue
Block a user