Commit d575fd9f authored by Kamil Trzciński's avatar Kamil Trzciński

Added Godeps and Travis-CI config

parent e55ec9af
......@@ -2,3 +2,4 @@
config.toml
.project
out
Godeps/_workspace
sudo: false
language: go
go:
- '1.4'
install:
- go get github.com/mitchellh/gox
- gox -build-toolchain -os="linux" -os="darwin"
- go get github.com/tools/godep
- godep restore
script:
- make test
- make build
deploy:
provider: releases
api_key:
secure: WBb1z0GV1uD8pB/UMDVqiqIFHcgxl2fngF9Qg8Obe0IJIuBN8ak4H1ulYKYcRgguJjefMG/OnPT2xHCsSme+OanxBcGDiYijG1vVmBqnMV8wTK5ulqkgSz7QVH4oCmdqd8WnHKqqqXmLUARRAUkvKFDCf2mq6qyAy+wKw7jPluI=
file:
- out/gitlab-ci-multi-runner-linux-arm
- out/gitlab-ci-multi-runner-linux-386
- out/gitlab-ci-multi-runner-linux-amd64
- out/gitlab-ci-multi-runner-darwin-386
- out/gitlab-ci-multi-runner-darwin-amd64
on:
repo: ayufan/gitlab-ci-multi-runner
tags: true
all_branches: true
{
"ImportPath": "github.com/ayufan/gitlab-ci-multi-runner",
"GoVersion": "go1.4",
"Deps": [
{
"ImportPath": "code.google.com/p/go.crypto/ssh",
"Comment": "null-236",
"Rev": "69e2a90ed92d03812364aeb947b7068dc42e561e"
},
{
"ImportPath": "github.com/BurntSushi/toml",
"Comment": "v0.1.0-9-g3883ac1",
"Rev": "3883ac1ce943878302255f538fce319d23226223"
},
{
"ImportPath": "github.com/Sirupsen/logrus",
"Comment": "v0.6.1-12-g0ae5377",
"Rev": "0ae53775f7736dbe9bbccbedb3c408f13ce5282e"
},
{
"ImportPath": "github.com/codegangsta/cli",
"Comment": "1.2.0-42-gfbda1ce",
"Rev": "fbda1ce02d5dabcee952040e5f4025753b6c9ce0"
},
{
"ImportPath": "github.com/docker/docker/pkg/archive",
"Comment": "v1.4.1-685-gb1f2fde",
"Rev": "b1f2fdeee213c437a363db9eda235444ffdcc4a5"
},
{
"ImportPath": "github.com/docker/docker/pkg/fileutils",
"Comment": "v1.4.1-685-gb1f2fde",
"Rev": "b1f2fdeee213c437a363db9eda235444ffdcc4a5"
},
{
"ImportPath": "github.com/docker/docker/pkg/ioutils",
"Comment": "v1.4.1-685-gb1f2fde",
"Rev": "b1f2fdeee213c437a363db9eda235444ffdcc4a5"
},
{
"ImportPath": "github.com/docker/docker/pkg/pools",
"Comment": "v1.4.1-685-gb1f2fde",
"Rev": "b1f2fdeee213c437a363db9eda235444ffdcc4a5"
},
{
"ImportPath": "github.com/docker/docker/pkg/promise",
"Comment": "v1.4.1-685-gb1f2fde",
"Rev": "b1f2fdeee213c437a363db9eda235444ffdcc4a5"
},
{
"ImportPath": "github.com/docker/docker/pkg/system",
"Comment": "v1.4.1-685-gb1f2fde",
"Rev": "b1f2fdeee213c437a363db9eda235444ffdcc4a5"
},
{
"ImportPath": "github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar",
"Comment": "v1.4.1-685-gb1f2fde",
"Rev": "b1f2fdeee213c437a363db9eda235444ffdcc4a5"
},
{
"ImportPath": "github.com/fsouza/go-dockerclient",
"Rev": "5da2a37ecfb5bcb921a36dbc18e912c3235f139a"
}
]
}
This directory tree is generated automatically by godep.
Please do not edit.
See https://github.com/tools/godep for more information.
all: linux-386 linux darwin-386 darwin
all: build
linux-386:
GOOS=linux GOARCH=386 bash -c 'go build -o out/gitlab-ci-multi-runner-$$GOOS-$$GOARCH$$GOEXT'
build:
gox -os="linux" -os="darwin" -output="out/{{.Dir}}-{{.OS}}-{{.Arch}}"
linux:
GOOS=linux GOARCH=amd64 bash -c 'go build -o out/gitlab-ci-multi-runner-$$GOOS-$$GOARCH$$GOEXT'
test:
go test
darwin-386:
GOOS=darwin GOARCH=386 bash -c 'go build -o out/gitlab-ci-multi-runner-$$GOOS-$$GOARCH$$GOEXT'
darwin:
GOOS=darwin GOARCH=amd64 bash -c 'go build -o out/gitlab-ci-multi-runner-$$GOOS-$$GOARCH$$GOEXT'
windows-386:
GOOS=windows GOARCH=386 GOEXT=.exe bash -c 'go build -o out/gitlab-ci-multi-runner-$$GOOS-$$GOARCH$$GOEXT'
windows:
GOOS=windows GOARCH=amd64 GOEXT=.exe bash -c 'go build -o out/gitlab-ci-multi-runner-$$GOOS-$$GOARCH$$GOEXT'
deploy:
gox -osarch="linux/amd64" -output="out/{{.Dir}}-{{.OS}}-{{.Arch}}"
scp out/gitlab-ci-multi-runner-linux-amd64 lab-worker:
ssh lab-worker ./gitlab-ci-multi-runner-linux-amd64 --debug run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment