Skip to content
This repository was archived by the owner on Jun 15, 2019. It is now read-only.

Commit 6df4530

Browse files
committed
ci(Travis): "Report Coverage" (using 'codecov.io') was added to one of "Unit Tests" + ...
1 parent c96d6a1 commit 6df4530

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

.travis.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@ cache:
77
jobs:
88
include:
99
- stage: "Unit Tests"
10-
if: tag !~ /^v\d+\.\d+\.\d+/
10+
name: "Unit Test (11)"
11+
if: type == push && tag !~ ^v\d+\.\d+\.\d+ && commit_message =~ /^(test|feat|fix|refactor|pref|build|revert)\(/
1112
node_js: "11"
12-
name: "Unit Tests (1)"
13+
before_script: echo -e "BUILD_DIR = $TRAVIS_BUILD_DIR\nBUILD_ID = $TRAVIS_BUILD_ID\nBUILD_NUMBER = $TRAVIS_BUILD_NUMBER\nBUILD_WEB_URL = $TRAVIS_BUILD_WEB_URL\nCOMMIT = $TRAVIS_COMMIT\nCOMMIT_MESSAGE = $TRAVIS_COMMIT_MESSAGE\nCOMMIT_RANGE = $TRAVIS_COMMIT_RANGE\nDEBUG_MODE = $TRAVIS_DEBUG_MODE\nEVENT_TYPE = $TRAVIS_EVENT_TYPE\nJOB_ID = $TRAVIS_JOB_ID\nJOB_NAME = $TRAVIS_JOB_NAME\nJOB_NUMBER = $TRAVIS_JOB_NUMBER\nJOB_WEB_URL = $TRAVIS_JOB_WEB_URL\nOS_NAME = $TRAVIS_OS_NAME\nOSX_IMAGE = $TRAVIS_OSX_IMAGE\nPULL_REQUEST = $TRAVIS_PULL_REQUEST\nPULL_REQUEST_BRANCH= $TRAVIS_PULL_REQUEST_BRANCH\nPULL_REQUEST_SHA = $TRAVIS_PULL_REQUEST_SHA\nPULL_REQUEST_SLUG = $TRAVIS_PULL_REQUEST_SLUG\nSECURE_ENV_VARS = $TRAVIS_SECURE_ENV_VARS\nSUDO = $TRAVIS_SUDO\nTEST_RESULT = $TRAVIS_TEST_RESULT\nTAG = $TRAVIS_TAG\nBUILD_STAGE_NAME = $TRAVIS_BUILD_STAGE_NAME"
1314
script: npm run test
14-
- script: npm run test
15-
if: tag !~ /^v\d+\.\d+\.\d+/
15+
- name: "Unit Test (10) + Report Coverage"
16+
if: type == push && tag !~ ^v\d+\.\d+\.\d+ && commit_message =~ /^(test|feat|fix|refactor|pref|build|revert)\(/
1617
node_js: "10"
17-
name: "Unit Tests (2)"
18+
script: npm run test
19+
after_success: npx codecov
1820

19-
- stage: "Build and Release"
20-
if: tag !~ /^v\d+\.\d+\.\d+/
21-
node_js: lts/*
21+
- stage: "Release"
22+
name: "Build and Release"
23+
if: type == push && tag !~ ^v\d+\.\d+\.\d+ && branch == master && commit_message =~ /^(feat|fix|refactor|pref|build|revert)\(/
2224
script: npm run build
25+
node_js: lts/*
2326
deploy:
2427
provider: script
2528
skip_cleanup: true

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
<p dir="auto">
2-
<a href="https://travis-ci.com/live-html-editor/TextWrap">
3-
<img src="https://travis-ci.com/live-html-editor/TextWrap.svg?branch=master" alt="Build Status">
4-
</a>
52
<a href="https://npmjs.com/package/@live-html-editor/text-wrap">
63
<img alt="npm (scoped)" src="https://img.shields.io/npm/v/@live-html-editor/text-wrap.svg">
74
</a>
85
<a href="https://npmjs.com/package/@live-html-editor/text-wrap">
96
<img alt="npm" src="https://img.shields.io/npm/dt/@live-html-editor/text-wrap.svg">
107
</a>
8+
<a href="https://packagephobia.now.sh/result?p=@live-html-editor/text-wrap">
9+
<img src="https://packagephobia.now.sh/badge?p=@live-html-editor/text-wrap" alt="install size">
10+
</a>
11+
<br>
12+
<a href="https://travis-ci.com/live-html-editor/TextWrap">
13+
<img src="https://travis-ci.com/live-html-editor/TextWrap.svg?branch=master" alt="Build Status">
14+
</a>
15+
<a href="https://codecov.io/github/live-html-editor/TextWrap">
16+
<img src="https://codecov.io/github/live-html-editor/TextWrap/branch/master/graph/badge.svg" alt="codecov">
17+
</a>
1118
<a href="https://david-dm.org/live-html-editor/textwrap">
1219
<img src="https://david-dm.org/live-html-editor/textwrap.svg" alt="Dependency Status">
1320
</a>
1421
<a href="https://david-dm.org/live-html-editor/textwrap?type=dev">
1522
<img src="https://david-dm.org/live-html-editor/textwrap/dev-status.svg" alt="devDependency Status">
1623
</a>
17-
<a href="https://packagephobia.now.sh/result?p=@live-html-editor/text-wrap">
18-
<img src="https://packagephobia.now.sh/badge?p=@live-html-editor/text-wrap" alt="install size">
19-
</a>
2024
<br>
2125
<a href="https://github.com/live-html-editor/TextWrap/blob/master/LICENSE">
2226
<img alt="GitHub" src="https://img.shields.io/github/license/live-html-editor/TextWrap.svg">

0 commit comments

Comments
 (0)