WIP: tests, REST API support (auth).

This commit is contained in:
Jonathan Bernard
2017-03-19 06:34:42 -05:00
parent 2551affd4b
commit b5a70f6de0
13 changed files with 211 additions and 20 deletions

View File

@ -0,0 +1,17 @@
{
"artifactsRepo": "artifacts",
"users": [
{ "name": "bob@builder.com", "hashedPwd": "testvalue" },
{ "name": "sam@sousa.com", "hashedPwd": "testvalue" }
],
"authSecret": "change me",
"projects": [
{ "name": "test-project-1",
"repo": "/non-existent/dir",
"cfgFilePath": "strawhat.json",
"defaultBranch": "deploy",
"envVars": { "VAR1": "value" }
},
{ "name": "test-strawboss",
"repo": "https://git.jdb-labs.com:jdb/test-strawboss.git" } ]
}

View File

@ -0,0 +1,16 @@
{
"name": "test-project-1",
"versionCmd": "git describe --all --always",
"steps": {
"build": {
"depends": ["test"],
"workingDir": "dir1",
"stepCmd": "cust-build",
"artifacts": ["bin1", "doc1"],
"expectedEnv": ["VAR1"],
"dontSkip": true,
"cmdInput": ["test", "this"]
},
"test": { }
}
}

View File

@ -0,0 +1,4 @@
{
"state": "failed",
"details": "some very good reason"
}