sum7
/
yaja
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
yaja/.gitlab-ci.yml

41 lines
1007 B
YAML
Raw Normal View History

2018-12-14 23:52:28 +01:00
image: golang:latest
stages:
- build
- test
before_script:
2019-06-22 12:29:33 +02:00
- mkdir -p "/go/src/dev.sum7.eu/$CI_PROJECT_NAMESPACE/"
- cp -R "$CI_PROJECT_DIR" "/go/src/dev.sum7.eu/$CI_PROJECT_NAMESPACE/"
- cd "/go/src/dev.sum7.eu/$CI_PROJECT_PATH"
2018-12-14 23:52:28 +01:00
- go get -d -t ./...
build-my-project:
stage: build
script:
2019-06-22 12:29:33 +02:00
- mkdir "$CI_PROJECT_DIR/bin/"
- go install "dev.sum7.eu/$CI_PROJECT_PATH"
- mv "/go/bin/$CI_PROJECT_NAME" "$CI_PROJECT_DIR/bin/$CI_PROJECT_NAME"
2018-12-14 23:52:28 +01:00
artifacts:
paths:
2019-06-22 12:29:33 +02:00
- "bin/$CI_PROJECT_NAME"
- yaja-bot_example.conf
- yaja-tester_example.conf
2018-12-14 23:52:28 +01:00
test-my-project:
stage: test
script:
- go get github.com/client9/misspell/cmd/misspell
- misspell -error .
- ./.ci/check-gofmt
- ./.ci/check-testfiles
- go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt
2019-06-22 12:29:33 +02:00
- go tool cover -func=.testCoverage.txt
2018-12-14 23:52:28 +01:00
artifacts:
paths:
- .testCoverage.txt
test-race-my-project:
stage: test
script:
- go test -race ./...