image: golang:1.6.2 before_script: - export CURRENT_BUILD_PATH=/builds/timothy/godns stages: - build - test init-env: stage: init script: build-my-project: stage: build script: - cd $CURRENT_BUILD_PATH - go get - go build test-my-project: stage: test script: - cd $CURRENT_BUILD_PATH - go test