Skip to content

Commit

Permalink
Merge pull request #5 from thisissoon/feature/fix-ci
Browse files Browse the repository at this point in the history
Fix: Gitlab test/build jobs
  • Loading branch information
jamesjwarren authored May 30, 2017
2 parents 5326039 + f5ee11e commit 553faf1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions {{cookiecutter.project_name}}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ stages:
# Builds and Tests the Application
test_job:
stage: test
image: golang:{{cookiecutter.go_version}}-alpine
image: golang:{{cookiecutter.go_version}}
script:
- apk update && apk add make bash
- mkdir -p $GOPATH/src; ln -s $CI_PROJECT_DIR $GOPATH/$SRC; cd $GOPATH/$SRC
- make test

Expand All @@ -27,15 +26,14 @@ build_job:
stage: build
only:
- master
image: golang:{{cookiecutter.go_version}}-alpine
artifacts:
expire_in: 24h
paths:
- ./{{cookiecutter.project_name}}.linux-amd64
script:
- apk update && apk add make bash
- mkdir -p $GOPATH/src; ln -s $CI_PROJECT_DIR $GOPATH/$SRC; cd $GOPATH/$SRC
- VERSION=$CI_COMMIT_SHA make linux64
- apt-get update && apt-get install make
- make onbuild
- make linux

# Release Job
release_job:
Expand Down

0 comments on commit 553faf1

Please sign in to comment.