add image to compiler tests
This commit is contained in:
@@ -197,7 +197,6 @@ func testCompile(t *testing.T, source, golden string) *engine.Spec {
|
||||
}
|
||||
if diff := cmp.Diff(got, want, opts...); len(diff) != 0 {
|
||||
t.Errorf(diff)
|
||||
dump(got)
|
||||
}
|
||||
|
||||
return got
|
||||
|
||||
305
engine/compiler/testdata/graph.json
vendored
305
engine/compiler/testdata/graph.json
vendored
@@ -3,94 +3,9 @@
|
||||
"steps": [
|
||||
{
|
||||
"id": "random",
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571810984",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571810984",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571810984",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571810984",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"environment": {},
|
||||
"image": "drone/git:1",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571810984",
|
||||
"io.drone.expires": "1571814584",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"labels": {},
|
||||
"name": "clone",
|
||||
"run_policy": "always",
|
||||
"volumes": [
|
||||
@@ -113,95 +28,10 @@
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571810984",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571810984",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SCRIPT": "\n\nif [ ! -z \"${DRONE_NETRC_FILE}\" ]; then\n\techo $DRONE_NETRC_FILE \u003e $HOME/.netrc\nfi\n\nunset DRONE_SCRIPT\nunset DRONE_NETRC_MACHINE\nunset DRONE_NETRC_USERNAME\nunset DRONE_NETRC_PASSWORD\nunset DRONE_NETRC_FILE\n\nset -e\n\n\necho + \"go build\"\ngo build\n",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571810984",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571810984",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571810984",
|
||||
"io.drone.expires": "1571814584",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "build",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "_workspace",
|
||||
@@ -222,95 +52,10 @@
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571810984",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571810984",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SCRIPT": "\n\nif [ ! -z \"${DRONE_NETRC_FILE}\" ]; then\n\techo $DRONE_NETRC_FILE \u003e $HOME/.netrc\nfi\n\nunset DRONE_SCRIPT\nunset DRONE_NETRC_MACHINE\nunset DRONE_NETRC_USERNAME\nunset DRONE_NETRC_PASSWORD\nunset DRONE_NETRC_FILE\n\nset -e\n\n\necho + \"go test\"\ngo test\n",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571810984",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571810984",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571810984",
|
||||
"io.drone.expires": "1571814584",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "test",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "_workspace",
|
||||
@@ -325,42 +70,12 @@
|
||||
"temp": {
|
||||
"id": "random",
|
||||
"name": "_workspace",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571810984",
|
||||
"io.drone.expires": "1571814584",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
}
|
||||
],
|
||||
"network": {
|
||||
"id": "random",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571810984",
|
||||
"io.drone.expires": "1571814584",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
}
|
||||
9
engine/compiler/testdata/graph.yml
vendored
9
engine/compiler/testdata/graph.yml
vendored
@@ -2,19 +2,14 @@ kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
server:
|
||||
image: docker-18-04
|
||||
region: nyc1
|
||||
size: s-1vcpu-1gb
|
||||
|
||||
token: 3DA541559918A808C2402BBA5012F6C60B27661C
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- go build
|
||||
|
||||
- name: test
|
||||
image: golang
|
||||
commands:
|
||||
- go test
|
||||
depends_on: [ build ]
|
||||
|
||||
216
engine/compiler/testdata/match.json
vendored
216
engine/compiler/testdata/match.json
vendored
@@ -10,95 +10,10 @@
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571811065",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571811065",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SCRIPT": "\n\nif [ ! -z \"${DRONE_NETRC_FILE}\" ]; then\n\techo $DRONE_NETRC_FILE \u003e $HOME/.netrc\nfi\n\nunset DRONE_SCRIPT\nunset DRONE_NETRC_MACHINE\nunset DRONE_NETRC_USERNAME\nunset DRONE_NETRC_PASSWORD\nunset DRONE_NETRC_FILE\n\nset -e\n\n\necho + \"go build\"\ngo build\n",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571811065",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571811065",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811065",
|
||||
"io.drone.expires": "1571814665",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "build",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "_workspace",
|
||||
@@ -119,95 +34,10 @@
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571811065",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571811065",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SCRIPT": "\n\nif [ ! -z \"${DRONE_NETRC_FILE}\" ]; then\n\techo $DRONE_NETRC_FILE \u003e $HOME/.netrc\nfi\n\nunset DRONE_SCRIPT\nunset DRONE_NETRC_MACHINE\nunset DRONE_NETRC_USERNAME\nunset DRONE_NETRC_PASSWORD\nunset DRONE_NETRC_FILE\n\nset -e\n\n\necho + \"go test\"\ngo test\n",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571811065",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571811065",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811065",
|
||||
"io.drone.expires": "1571814665",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "test",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"run_policy": "never",
|
||||
"volumes": [
|
||||
{
|
||||
@@ -223,42 +53,12 @@
|
||||
"temp": {
|
||||
"id": "random",
|
||||
"name": "_workspace",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811065",
|
||||
"io.drone.expires": "1571814665",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
}
|
||||
],
|
||||
"network": {
|
||||
"id": "random",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811065",
|
||||
"io.drone.expires": "1571814665",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
}
|
||||
9
engine/compiler/testdata/match.yml
vendored
9
engine/compiler/testdata/match.yml
vendored
@@ -5,21 +5,16 @@ name: default
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
server:
|
||||
image: docker-18-04
|
||||
region: nyc1
|
||||
size: s-1vcpu-1gb
|
||||
|
||||
token: 3DA541559918A808C2402BBA5012F6C60B27661C
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- go build
|
||||
when:
|
||||
branch: [ master ]
|
||||
|
||||
- name: test
|
||||
image: golang
|
||||
commands:
|
||||
- go test
|
||||
when:
|
||||
|
||||
216
engine/compiler/testdata/noclone_graph.json
vendored
216
engine/compiler/testdata/noclone_graph.json
vendored
@@ -10,95 +10,10 @@
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571811036",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571811036",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SCRIPT": "\n\nif [ ! -z \"${DRONE_NETRC_FILE}\" ]; then\n\techo $DRONE_NETRC_FILE \u003e $HOME/.netrc\nfi\n\nunset DRONE_SCRIPT\nunset DRONE_NETRC_MACHINE\nunset DRONE_NETRC_USERNAME\nunset DRONE_NETRC_PASSWORD\nunset DRONE_NETRC_FILE\n\nset -e\n\n\necho + \"go build\"\ngo build\n",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571811036",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571811036",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811036",
|
||||
"io.drone.expires": "1571814636",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "build",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "_workspace",
|
||||
@@ -119,95 +34,10 @@
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571811036",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571811036",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SCRIPT": "\n\nif [ ! -z \"${DRONE_NETRC_FILE}\" ]; then\n\techo $DRONE_NETRC_FILE \u003e $HOME/.netrc\nfi\n\nunset DRONE_SCRIPT\nunset DRONE_NETRC_MACHINE\nunset DRONE_NETRC_USERNAME\nunset DRONE_NETRC_PASSWORD\nunset DRONE_NETRC_FILE\n\nset -e\n\n\necho + \"go test\"\ngo test\n",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571811036",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571811036",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811036",
|
||||
"io.drone.expires": "1571814636",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "test",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "_workspace",
|
||||
@@ -222,42 +52,12 @@
|
||||
"temp": {
|
||||
"id": "random",
|
||||
"name": "_workspace",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811036",
|
||||
"io.drone.expires": "1571814636",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
}
|
||||
],
|
||||
"network": {
|
||||
"id": "random",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811036",
|
||||
"io.drone.expires": "1571814636",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
}
|
||||
9
engine/compiler/testdata/noclone_graph.yml
vendored
9
engine/compiler/testdata/noclone_graph.yml
vendored
@@ -5,19 +5,14 @@ name: default
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
server:
|
||||
image: docker-18-04
|
||||
region: nyc1
|
||||
size: s-1vcpu-1gb
|
||||
|
||||
token: 3DA541559918A808C2402BBA5012F6C60B27661C
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- go build
|
||||
|
||||
- name: test
|
||||
image: golang
|
||||
commands:
|
||||
- go test
|
||||
depends_on: [ build ]
|
||||
125
engine/compiler/testdata/noclone_serial.json
vendored
125
engine/compiler/testdata/noclone_serial.json
vendored
@@ -10,95 +10,10 @@
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571811007",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571811007",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SCRIPT": "\n\nif [ ! -z \"${DRONE_NETRC_FILE}\" ]; then\n\techo $DRONE_NETRC_FILE \u003e $HOME/.netrc\nfi\n\nunset DRONE_SCRIPT\nunset DRONE_NETRC_MACHINE\nunset DRONE_NETRC_USERNAME\nunset DRONE_NETRC_PASSWORD\nunset DRONE_NETRC_FILE\n\nset -e\n\n\necho + \"go build\"\ngo build\n\necho + \"go test\"\ngo test\n",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571811007",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571811007",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811007",
|
||||
"io.drone.expires": "1571814607",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "build",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "_workspace",
|
||||
@@ -113,42 +28,12 @@
|
||||
"temp": {
|
||||
"id": "random",
|
||||
"name": "_workspace",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811007",
|
||||
"io.drone.expires": "1571814607",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
}
|
||||
],
|
||||
"network": {
|
||||
"id": "random",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571811007",
|
||||
"io.drone.expires": "1571814607",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
}
|
||||
8
engine/compiler/testdata/noclone_serial.yml
vendored
8
engine/compiler/testdata/noclone_serial.yml
vendored
@@ -5,15 +5,9 @@ name: default
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
server:
|
||||
image: docker-18-04
|
||||
region: nyc1
|
||||
size: s-1vcpu-1gb
|
||||
|
||||
token: 3DA541559918A808C2402BBA5012F6C60B27661C
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- go build
|
||||
- go test
|
||||
|
||||
1
engine/compiler/testdata/run_always.json
vendored
1
engine/compiler/testdata/run_always.json
vendored
@@ -13,6 +13,7 @@
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "build",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"run_policy": "always",
|
||||
"volumes": [
|
||||
{
|
||||
|
||||
8
engine/compiler/testdata/run_always.yml
vendored
8
engine/compiler/testdata/run_always.yml
vendored
@@ -5,15 +5,9 @@ name: default
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
server:
|
||||
image: docker-18-04
|
||||
region: nyc1
|
||||
size: s-1vcpu-1gb
|
||||
|
||||
token: 3DA541559918A808C2402BBA5012F6C60B27661C
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- go build
|
||||
when:
|
||||
|
||||
1
engine/compiler/testdata/run_failure.json
vendored
1
engine/compiler/testdata/run_failure.json
vendored
@@ -13,6 +13,7 @@
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "build",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"run_policy": "on-failure",
|
||||
"volumes": [
|
||||
{
|
||||
|
||||
8
engine/compiler/testdata/run_failure.yml
vendored
8
engine/compiler/testdata/run_failure.yml
vendored
@@ -5,15 +5,9 @@ name: default
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
server:
|
||||
image: docker-18-04
|
||||
region: nyc1
|
||||
size: s-1vcpu-1gb
|
||||
|
||||
token: 3DA541559918A808C2402BBA5012F6C60B27661C
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- go build
|
||||
when:
|
||||
|
||||
8
engine/compiler/testdata/secret.yml
vendored
8
engine/compiler/testdata/secret.yml
vendored
@@ -5,14 +5,6 @@ name: default
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
server:
|
||||
image: docker-18-04
|
||||
region: nyc1
|
||||
size: s-1vcpu-1gb
|
||||
|
||||
token:
|
||||
from_secret: token
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
environment:
|
||||
|
||||
305
engine/compiler/testdata/serial.json
vendored
305
engine/compiler/testdata/serial.json
vendored
@@ -3,94 +3,9 @@
|
||||
"steps": [
|
||||
{
|
||||
"id": "random",
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571810939",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571810939",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571810939",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571810939",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"environment": {},
|
||||
"image": "drone/git:1",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571810939",
|
||||
"io.drone.expires": "1571814539",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"labels": {},
|
||||
"name": "clone",
|
||||
"run_policy": "always",
|
||||
"volumes": [
|
||||
@@ -113,95 +28,10 @@
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571810939",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571810939",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SCRIPT": "\n\nif [ ! -z \"${DRONE_NETRC_FILE}\" ]; then\n\techo $DRONE_NETRC_FILE \u003e $HOME/.netrc\nfi\n\nunset DRONE_SCRIPT\nunset DRONE_NETRC_MACHINE\nunset DRONE_NETRC_USERNAME\nunset DRONE_NETRC_PASSWORD\nunset DRONE_NETRC_FILE\n\nset -e\n\n\necho + \"go build\"\ngo build\n",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571810939",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571810939",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571810939",
|
||||
"io.drone.expires": "1571814539",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "build",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "_workspace",
|
||||
@@ -222,95 +52,10 @@
|
||||
"/bin/sh",
|
||||
"-c"
|
||||
],
|
||||
"environment": {
|
||||
"CI": "true",
|
||||
"DRONE": "true",
|
||||
"DRONE_BRANCH": "master",
|
||||
"DRONE_BUILD_ACTION": "",
|
||||
"DRONE_BUILD_CREATED": "0",
|
||||
"DRONE_BUILD_EVENT": "",
|
||||
"DRONE_BUILD_FINISHED": "1571810939",
|
||||
"DRONE_BUILD_LINK": ":////0",
|
||||
"DRONE_BUILD_NUMBER": "0",
|
||||
"DRONE_BUILD_PARENT": "0",
|
||||
"DRONE_BUILD_STARTED": "1571810939",
|
||||
"DRONE_BUILD_STATUS": "success",
|
||||
"DRONE_COMMIT": "",
|
||||
"DRONE_COMMIT_AFTER": "",
|
||||
"DRONE_COMMIT_AUTHOR": "",
|
||||
"DRONE_COMMIT_AUTHOR_AVATAR": "",
|
||||
"DRONE_COMMIT_AUTHOR_EMAIL": "",
|
||||
"DRONE_COMMIT_AUTHOR_NAME": "",
|
||||
"DRONE_COMMIT_BEFORE": "",
|
||||
"DRONE_COMMIT_BRANCH": "master",
|
||||
"DRONE_COMMIT_LINK": "",
|
||||
"DRONE_COMMIT_MESSAGE": "",
|
||||
"DRONE_COMMIT_REF": "",
|
||||
"DRONE_COMMIT_SHA": "",
|
||||
"DRONE_DEPLOY_TO": "",
|
||||
"DRONE_DOCKER_NETWORK_ID": "random",
|
||||
"DRONE_DOCKER_VOLUME_ID": "random",
|
||||
"DRONE_GIT_HTTP_URL": "",
|
||||
"DRONE_GIT_SSH_URL": "",
|
||||
"DRONE_NETRC_FILE": "machine github.com login octocat password correct-horse-battery-staple",
|
||||
"DRONE_NETRC_MACHINE": "github.com",
|
||||
"DRONE_NETRC_PASSWORD": "correct-horse-battery-staple",
|
||||
"DRONE_NETRC_USERNAME": "octocat",
|
||||
"DRONE_REMOTE_URL": "",
|
||||
"DRONE_REPO": "",
|
||||
"DRONE_REPO_BRANCH": "",
|
||||
"DRONE_REPO_LINK": "",
|
||||
"DRONE_REPO_NAME": "",
|
||||
"DRONE_REPO_NAMESPACE": "",
|
||||
"DRONE_REPO_OWNER": "",
|
||||
"DRONE_REPO_PRIVATE": "false",
|
||||
"DRONE_REPO_SCM": "",
|
||||
"DRONE_REPO_VISIBILITY": "",
|
||||
"DRONE_SCRIPT": "\n\nif [ ! -z \"${DRONE_NETRC_FILE}\" ]; then\n\techo $DRONE_NETRC_FILE \u003e $HOME/.netrc\nfi\n\nunset DRONE_SCRIPT\nunset DRONE_NETRC_MACHINE\nunset DRONE_NETRC_USERNAME\nunset DRONE_NETRC_PASSWORD\nunset DRONE_NETRC_FILE\n\nset -e\n\n\necho + \"go test\"\ngo test\n",
|
||||
"DRONE_SOURCE_BRANCH": "",
|
||||
"DRONE_STAGE_ARCH": "",
|
||||
"DRONE_STAGE_DEPENDS_ON": "",
|
||||
"DRONE_STAGE_FINISHED": "1571810939",
|
||||
"DRONE_STAGE_KIND": "",
|
||||
"DRONE_STAGE_MACHINE": "",
|
||||
"DRONE_STAGE_NAME": "",
|
||||
"DRONE_STAGE_NUMBER": "0",
|
||||
"DRONE_STAGE_OS": "",
|
||||
"DRONE_STAGE_STARTED": "1571810939",
|
||||
"DRONE_STAGE_STATUS": "success",
|
||||
"DRONE_STAGE_TYPE": "",
|
||||
"DRONE_STAGE_VARIANT": "",
|
||||
"DRONE_SYSTEM_HOST": "",
|
||||
"DRONE_SYSTEM_HOSTNAME": "",
|
||||
"DRONE_SYSTEM_PROTO": "",
|
||||
"DRONE_SYSTEM_VERSION": "",
|
||||
"DRONE_TARGET_BRANCH": "master",
|
||||
"DRONE_WORKSPACE": "/drone/src",
|
||||
"DRONE_WORKSPACE_BASE": "/drone/src",
|
||||
"DRONE_WORKSPACE_PATH": "",
|
||||
"GIT_AUTHOR_EMAIL": "noreply@drone",
|
||||
"GIT_AUTHOR_NAME": "drone",
|
||||
"GIT_COMMITTER_EMAIL": "noreply@drone",
|
||||
"GIT_COMMITTER_NAME": "drone",
|
||||
"GIT_TERMINAL_PROMPT": "0"
|
||||
},
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571810939",
|
||||
"io.drone.expires": "1571814539",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
},
|
||||
"environment": {},
|
||||
"labels": {},
|
||||
"name": "test",
|
||||
"image": "docker.io/library/golang:latest",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "_workspace",
|
||||
@@ -325,42 +70,12 @@
|
||||
"temp": {
|
||||
"id": "random",
|
||||
"name": "_workspace",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571810939",
|
||||
"io.drone.expires": "1571814539",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
}
|
||||
],
|
||||
"network": {
|
||||
"id": "random",
|
||||
"labels": {
|
||||
"io.drone": "true",
|
||||
"io.drone.build.number": "0",
|
||||
"io.drone.created": "1571810939",
|
||||
"io.drone.expires": "1571814539",
|
||||
"io.drone.protected": "false",
|
||||
"io.drone.repo.name": "",
|
||||
"io.drone.repo.namespace": "",
|
||||
"io.drone.repo.slug": "",
|
||||
"io.drone.stage.name": "",
|
||||
"io.drone.stage.number": "0",
|
||||
"io.drone.system.host": "",
|
||||
"io.drone.system.proto": "",
|
||||
"io.drone.system.version": "",
|
||||
"io.drone.ttl": "0s"
|
||||
}
|
||||
"labels": {}
|
||||
}
|
||||
}
|
||||
9
engine/compiler/testdata/serial.yml
vendored
9
engine/compiler/testdata/serial.yml
vendored
@@ -2,18 +2,13 @@ kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
server:
|
||||
image: docker-18-04
|
||||
region: nyc1
|
||||
size: s-1vcpu-1gb
|
||||
|
||||
token: 3DA541559918A808C2402BBA5012F6C60B27661C
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- go build
|
||||
|
||||
- name: test
|
||||
image: golang
|
||||
commands:
|
||||
- go test
|
||||
|
||||
Reference in New Issue
Block a user