commit
2c61ebd067
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -17,7 +17,6 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'cp config_test.yml.dist config_test.yml'
|
sh 'cp config_test.yml.dist config_test.yml'
|
||||||
compose 'up -d --build postgres_test'
|
compose 'up -d --build postgres_test'
|
||||||
compose 'run --rm mg_telegram_test make migrate_test'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ test: deps fmt
|
|||||||
@echo "==> Running tests"
|
@echo "==> Running tests"
|
||||||
@cd $(ROOT_DIR) && go test ./... -v -cpu 2
|
@cd $(ROOT_DIR) && go test ./... -v -cpu 2
|
||||||
|
|
||||||
jenkins_test: deps
|
jenkins_test: migrate_test
|
||||||
@echo "==> Running tests (result in test-report.xml)"
|
@echo "==> Running tests (result in test-report.xml)"
|
||||||
@go get -v -u github.com/jstemmer/go-junit-report
|
@go get -v -u github.com/jstemmer/go-junit-report
|
||||||
@go test ./... -v -cpu 2 -race | /go/bin/go-junit-report -set-exit-code > ./test-report.xml
|
@go test ./... -v -cpu 2 -race | /go/bin/go-junit-report -set-exit-code > ./test-report.xml
|
||||||
|
Loading…
Reference in New Issue
Block a user