First attempt at adding a CI.
This commit is contained in:
parent
66c2e147e2
commit
fba48e1d4d
1 changed files with 18 additions and 0 deletions
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
image: golang:1.11
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- /apt-cache
|
||||
- /go/src/github.com
|
||||
- /go/src/golang.org
|
||||
- /go/src/google.golang.org
|
||||
- /go/src/gopkg.in
|
||||
|
||||
before_script:
|
||||
- mkdir -p /go/src/gitlab.com/spdf /go/src/_/builds
|
||||
- cp -r $CI_PROJECT_DIR /go/src/gitlab.com/spdf/elektron
|
||||
- ln -s /go/src/gitlab.com/spdf /go/src/_/builds/elektron
|
||||
|
||||
build:
|
||||
script:
|
||||
- go build -o elektron /go/src/gitlab.com/spdf/elektron
|
Reference in a new issue