Skip to content
Snippets Groups Projects
Commit 42f911be authored by scott.wang's avatar scott.wang
Browse files

Wait for test

parent 7f60b0a7
No related branches found
No related tags found
No related merge requests found
language: go
os:
- linux
dist: trusty
sudo: required
# depend env
language: go
go:
- "1.13"
os:
- linux
services:
- docker
env:
- GO111MODULE=on
install: true
# ci stage define
stages:
- name: licensecheck
- name: format
- name: uinttest
- name: integratetest
script:
- go fmt ./... && [[ -z `git status -s` ]]
- sh before_validate_license.sh
- chmod u+x /tmp/tools/license/license-header-checker
- /tmp/tools/license/license-header-checker -v -a -r -i vendor /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]]
- chmod u+x before_ut.sh && ./before_ut.sh
- go mod vendor && go test ./... -coverprofile=coverage.txt -covermode=atomic
jobs:
include:
- stage: licensecheck
script:
- sh before_validate_license.sh
- chmod u+x /tmp/tools/license/license-header-checker
- /tmp/tools/license/license-header-checker -v -a -r -i vendor /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]]
- stage: format
script:
- go fmt ./... && [[ -z `git status -s` ]]
- go mod vendor
- stage: uinttest
script: go test ./... -coverprofile=coverage.txt -covermode=atomic
- stage: integratetest
script:
- echo "intergrate test"
after_success:
- bash <(curl -s https://codecov.io/bash)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment