2020-01-31 19:03:57 +00:00
|
|
|
check:
|
|
|
|
image: eu.gcr.io/shad-ts/grader/go-build
|
|
|
|
script:
|
|
|
|
- go test -tags private,solution ./...
|
|
|
|
- go test -race -tags private,solution ./...
|
|
|
|
|
|
|
|
rebuild-base-image:
|
|
|
|
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
|
|
|
|
|
2020-02-01 00:35:28 +00:00
|
|
|
deploy:
|
2020-01-31 19:03:57 +00:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
script:
|
2020-02-01 00:35:28 +00:00
|
|
|
- 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
|
2020-01-31 19:41:25 +00:00
|
|
|
|
2020-02-01 00:35:28 +00:00
|
|
|
update-task-list:
|
2020-01-31 19:41:25 +00:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
script:
|
2020-02-01 00:35:28 +00:00
|
|
|
- curl -F token=$TESTER_TOKEN https://go.manytask.org/api/sync_task_columns
|
|
|
|
|
|
|
|
push-to-public:
|
2020-02-01 00:37:41 +00:00
|
|
|
stage: .post
|
2020-02-01 00:35:28 +00:00
|
|
|
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'
|
2020-02-01 00:46:34 +00:00
|
|
|
- git fetch public
|
|
|
|
- git branch public public/master
|
2020-02-01 00:35:28 +00:00
|
|
|
- testtool export --push
|