1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 02:49:56 +02:00

Codecov: Only test slate, slate-html-serializer and slate-plain-serializer (#2186)

* Only test slate models

* test slate-plain and slate-html models

* Fix travis
This commit is contained in:
Jinxuan Zhu
2018-09-19 14:39:02 -04:00
committed by Ian Storm Taylor
parent ebc72bf38f
commit 9d4d00e299
2 changed files with 3 additions and 1 deletions

2
.nycrc
View File

@@ -4,7 +4,7 @@
"all": true,
"extension" : ["js"],
"cache": false,
"include": ["**/src/**"],
"include": ["packages/slate/src/**", "packages/slate-html-serializer/src/**", "packages/slate-plain-serializer/src/**"],
"reporter": [
"html",
"lcov",

View File

@@ -10,6 +10,7 @@ cache: yarn
env:
# Do two runs, one for testing and one for linting.
matrix:
- TEST_TYPE=test:coverage
- TEST_TYPE=lint:eslint
- TEST_TYPE=lint:prettier
@@ -27,4 +28,5 @@ script:
- |
set -e
yarn $TEST_TYPE
if [[ $TEST_TYPE == 'test:coverage' ]]; then yarn codecov; fi
set +e