-
Notifications
You must be signed in to change notification settings - Fork 0
/
fallback.go
61 lines (57 loc) · 1.32 KB
/
fallback.go
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
package internal
import (
"github.com/CircleCI-Public/circleci-config/config"
)
var stubTestJob = Job{
Job: config.Job{
Name: "test",
Comment: "",
DockerImages: []string{"cimg/base:stable"},
Steps: []config.Step{
{
Type: config.Checkout,
}, {
Name: "Run tests",
Type: config.Run,
Comment: "Replace this with a real test runner invocation",
Command: "echo 'replace me with real tests!' && false",
},
},
},
Type: TestJob,
}
var stubArtifactJob = Job{
Job: config.Job{
Name: "build",
Comment: "",
DockerImages: []string{"cimg/base:stable"},
Steps: []config.Step{
{
Type: config.Checkout,
}, {
Type: config.Run,
Name: "Build an artifact",
Comment: "Replace this with steps to build a package, or executable",
Command: "touch example.txt",
}, {
Type: config.StoreArtifacts,
Path: "example.txt",
},
},
},
Type: ArtifactJob,
}
var stubDeployJob = Job{
Job: config.Job{
Name: "deploy",
Comment: "This is an example deploy job, not actually used by the workflow",
DockerImages: []string{"cimg/base:stable"},
Steps: []config.Step{{
Type: config.Run,
Name: "deploy",
Comment: "Replace this with steps to deploy to users",
Command: "#e.g. ./deploy.sh",
}},
},
Type: DeployJob,
}