feature/test #1
@@ -13,7 +13,7 @@ local task_build_go(version, arch) = {
|
||||
{ type: 'clone' },
|
||||
{ type: 'restore_cache', keys: ['cache-sum-{{ md5sum "go.sum" }}', 'cache-date-'], dest_dir: '/go/pkg/mod/cache' },
|
||||
{ type: 'run', name: 'build the program', command: 'go build .' },
|
||||
{ type: 'save_to_workspace', contents: [{ source_dir: '.', dest_dir: '/bin/', paths: ['agola-example-go'] }] },
|
||||
{ type: 'save_to_workspace', contents: [{ source_dir: '.', dest_dir: '/bin/', paths: ['agola-test'] }] },
|
||||
{ type: 'save_cache', key: 'cache-sum-{{ md5sum "go.sum" }}', contents: [{ source_dir: '/go/pkg/mod/cache' }] },
|
||||
{ type: 'save_cache', key: 'cache-date-{{ year }}-{{ month }}-{{ day }}', contents: [{ source_dir: '/go/pkg/mod/cache' }] },
|
||||
],
|
||||
@@ -40,7 +40,7 @@ local task_build_go(version, arch) = {
|
||||
},
|
||||
steps: [
|
||||
{ type: 'restore_workspace', dest_dir: '.' },
|
||||
{ type: 'run', command: 'find .' },
|
||||
{ type: 'run', command: 'find /bin ; pwd ; ls -la' },
|
||||
{ type: 'run', command: './bin/agola-test' },
|
||||
],
|
||||
depends: [
|
||||
|
||||
Reference in New Issue
Block a user