add ci infrastructure
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM progrium/busybox
|
||||||
|
|
||||||
|
RUN opkg-install ca-certificates
|
||||||
|
|
||||||
|
# satisfy go crypto/x509
|
||||||
|
RUN for cert in `ls -1 /etc/ssl/certs/*.crt | grep -v /etc/ssl/certs/ca-certificates.crt`; \
|
||||||
|
do cat "$cert" >> /etc/ssl/certs/ca-certificates.crt; \
|
||||||
|
done
|
||||||
|
|
||||||
|
ADD built-check /opt/resource/check
|
||||||
|
ADD built-out /opt/resource/out
|
9
build.yml
Normal file
9
build.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
image: docker:///concourse/static-golang
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
- name: github-release-resource
|
||||||
|
path: gopath/src/github.com/concourse/github-release-resource
|
||||||
|
|
||||||
|
run:
|
||||||
|
path: gopath/src/github.com/concourse/github-release-resource/scripts/test
|
4
scripts/build
Executable file
4
scripts/build
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
go build -o built-out ./cmd/out
|
||||||
|
go build -o built-check ./cmd/check
|
18
scripts/test
Executable file
18
scripts/test
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# vim: set ft=sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
export GOPATH=$PWD/gopath
|
||||||
|
export PATH=$GOPATH/bin:$PATH
|
||||||
|
|
||||||
|
cd $GOPATH/src/github.com/concourse/github-release-resource
|
||||||
|
|
||||||
|
export GOPATH=${PWD}/Godeps/_workspace:$GOPATH
|
||||||
|
export PATH=${PWD}/Godeps/_workspace/bin:$PATH
|
||||||
|
|
||||||
|
go install github.com/onsi/ginkgo/ginkgo
|
||||||
|
|
||||||
|
ginkgo -r -p "$@"
|
||||||
|
|
||||||
|
./scripts/build
|
Reference in New Issue
Block a user