Commit 55c99431 authored by madengji's avatar madengji Committed by 33cn

modify script

parent f6bc19f1
...@@ -6,6 +6,12 @@ services: ...@@ -6,6 +6,12 @@ services:
env: env:
- DOCKER_COMPOSE_VERSION=1.21.2 - DOCKER_COMPOSE_VERSION=1.21.2
os: linux
dist: xenial
go:
- "1.9"
- master
before_install: before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
...@@ -27,25 +33,17 @@ jobs: ...@@ -27,25 +33,17 @@ jobs:
- gometalinter.v2 -i - gometalinter.v2 -i
- go get -u mvdan.cc/sh/cmd/shfmt - go get -u mvdan.cc/sh/cmd/shfmt
- go get -u mvdan.cc/sh/cmd/gosh - go get -u mvdan.cc/sh/cmd/gosh
os: linux
dist: xenial
go:
- "1.9"
- master
name "check fmt"
script: script:
- make checkgofmt - make checkgofmt
- make fmt_go - make fmt_go
- make linter - make linter
name "unit test"
script: script:
- make test - make test
name "coverage"
script: script:
- make coverage - make coverage
- stage: deploy - stage: deploy
name "deploy" sudo: false
install: skip
before_script: make build_ci before_script: make build_ci
script: script:
- make docker-compose PROJ=deploy DAPP=all - make docker-compose PROJ=deploy DAPP=all
......
Markdown is supported
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