Skip to content

Commit dcca7bc

Browse files
committed
chore(.travis.yml): change .travis.yml
1 parent 72a6240 commit dcca7bc

6 files changed

Lines changed: 20 additions & 268 deletions

File tree

.travis.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
language: go
2-
go:
3-
- "1.10"
4-
jobs:
5-
include:
6-
- stage: Test and build
7-
script:
8-
REVISION=${TRAVIS_COMMIT::7} make test && docker run -e BUILD_ARCH=amd64 -e REVISION=${TRAVIS_COMMIT::7} -e GIT_TAG=$(git describe --abbrev=0 --tags) -e DIST_DIR=/upload -v $(pwd)/_dist/:/upload --rm quay.io/drycc/workflow-cli-dev:${TRAVIS_COMMIT::7} make build-all
2+
sudo: required
3+
services:
4+
- docker
5+
script:
6+
- make bootstrap test
7+
notifications:
8+
slack:
9+
rooms:
10+
- drycc:xKmLlmJR4hfRAgVIOwdpAoC9#drycc
11+
after_success:
12+
- bash <(curl -s https://codecov.io/bash)

Jenkinsfile

Lines changed: 0 additions & 238 deletions
This file was deleted.

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,19 @@ bootstrap:
3434

3535
# This is supposed to be run within a docker container
3636
build-revision:
37-
${DEV_ENV_CMD} gox -verbose ${GO_LDFLAGS} -os="${BUILD_OS}" -arch="${BUILD_ARCH}" -output="${DIST_DIR}/${REVISION}/drycc-${REVISION}-{{.OS}}-{{.Arch}}" .
38-
37+
${DEV_ENV_CMD} gox -verbose ${GO_LDFLAGS} -os="${BUILD_OS}" -arch="${BUILD_ARCH}" -output="${DIST_DIR}/${REVISION}/drycc-${REVISION}-{{.OS}}-{{.Arch}}" .
3938
# This is supposed to be run within a docker container
4039
build-tag:
4140
${DEV_ENV_CMD} gox -verbose ${GO_LDFLAGS} -os="${BUILD_OS}" -arch="${BUILD_ARCH}" -output="${DIST_DIR}/${GIT_TAG}/drycc-${GIT_TAG}-{{.OS}}-{{.Arch}}" .
4241
@$(call build-install-script,${GIT_TAG})
4342

4443
build: build-tag build-revision
4544

46-
test-style: build-test-image
45+
test-style:
4746
${DEV_ENV_CMD} lint
4847

49-
test:
50-
${DEV_ENV_CMD} test
48+
test-cover:
49+
${DEV_ENV_CMD} test-cover.sh
50+
51+
test: build-revision test-style test-cover
52+
${DEV_ENV_CMD} go test ./...

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
[![Build Status](https://travis-ci.org/drycc/workflow-cli.svg?branch=master)](https://travis-ci.org/drycc/workflow-cli)
2-
31
# Drycc Client
42

5-
[![Build Status](https://ci.drycc.cc/buildStatus/icon?job=Drycc/workflow-cli/master)](https://ci.drycc.cc/job/Drycc/job/workflow-cli/job/master/)
3+
[![Build Status](https://travis-ci.org/drycc/workflow-cli.svg?branch=master)](https://travis-ci.org/drycc/workflow-cli)
64
[![Go Report Card](https://goreportcard.com/badge/github.com/drycc/workflow-cli)](https://goreportcard.com/report/github.com/drycc/workflow-cli)
7-
[![codebeat badge](https://codebeat.co/badges/05d314a8-ca61-4211-b69e-e7a3033662c8)](https://codebeat.co/projects/github-com-drycc-workflow-cli)
5+
[![codebeat badge](https://codebeat.co/badges/826a57a3-c9a8-4263-ae57-f249d5a3bb79)](https://codebeat.co/projects/github-com-drycc-workflow-cli-master)
86
[![codecov](https://codecov.io/gh/drycc/workflow-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/drycc/workflow-cli)
97

108
Download Links: https://github.com/drycc/workflow-cli/releases

_scripts/test

Lines changed: 0 additions & 2 deletions
This file was deleted.

make.ps1

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)