-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpipeline.yml
71 lines (67 loc) · 1.36 KB
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
groups:
- name: default
jobs:
- unit-tests
- e2e-tests
jobs:
- name: unit-tests
plan:
- get: kwt
trigger: true
- task: test
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
version: trusty
run:
path: /bin/bash
args:
- gopath/src/github.com/carvel-dev/kwt/ci/unit-tests.sh
inputs:
- name: kwt
path: gopath/src/github.com/carvel-dev/kwt
- name: e2e-tests
serial: true
plan:
- get: e2e-tests-interval
trigger: true
- get: kwt
- task: test
privileged: true
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
version: xenial
params:
KUBECONFIG_CONTENTS: ((kubeconfig))
run:
path: /bin/bash
args:
- -c
- |
mkdir -p ~/.kube
set +x
echo "$KUBECONFIG_CONTENTS" > ~/.kube/config
set -x
./gopath/src/github.com/carvel-dev/kwt/ci/e2e-tests.sh
inputs:
- name: kwt
path: gopath/src/github.com/carvel-dev/kwt
resources:
- name: kwt
type: git
source:
uri: git@github.com:k14s/kwt
branch: master
private_key: ((private_git_ssh_pull_key))
- name: e2e-tests-interval
type: time
source:
interval: 30m