shad-go/.releaser-ci.yml
2020-02-01 03:35:28 +03:00

53 lines
1.2 KiB
YAML

stages:
- test
- deplog
- push
check:
stage: test
image: eu.gcr.io/shad-ts/grader/go-build
script:
- go test -tags private,solution ./...
- go test -race -tags private,solution ./...
rebuild-base-image:
stage: test
only:
- master
tags:
- docker
when: manual
script:
- docker build -f build.docker -t eu.gcr.io/shad-ts/grader/go-build .
- docker push eu.gcr.io/shad-ts/grader/go-build:latest
deploy:
stage: deploy
only:
- master
tags:
- docker
script:
- docker pull eu.gcr.io/shad-ts/grader/go-build:latest
- docker build -f testenv.docker -t eu.gcr.io/shad-ts/grader/go .
- docker push eu.gcr.io/shad-ts/grader/go:latest
update-task-list:
stage: push
only:
- master
tags:
- docker
script:
- curl -F token=$TESTER_TOKEN https://go.manytask.org/api/sync_task_columns
push-to-public:
stage: push
image: eu.gcr.io/shad-ts/grader/go
only:
- master
script:
- git remote add public https://prime:${CI_PUSH_TOKEN}@gitlab.com/slon/shad-go.git
- git config --global user.email 'prime@yandex-team.ru'
- git config --global user.name 'Fedor Korotkiy'
- testtool export --push