mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-01 19:22:35 +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:
committed by
Ian Storm Taylor
parent
ebc72bf38f
commit
9d4d00e299
2
.nycrc
2
.nycrc
@@ -4,7 +4,7 @@
|
|||||||
"all": true,
|
"all": true,
|
||||||
"extension" : ["js"],
|
"extension" : ["js"],
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"include": ["**/src/**"],
|
"include": ["packages/slate/src/**", "packages/slate-html-serializer/src/**", "packages/slate-plain-serializer/src/**"],
|
||||||
"reporter": [
|
"reporter": [
|
||||||
"html",
|
"html",
|
||||||
"lcov",
|
"lcov",
|
||||||
|
@@ -10,6 +10,7 @@ cache: yarn
|
|||||||
env:
|
env:
|
||||||
# Do two runs, one for testing and one for linting.
|
# Do two runs, one for testing and one for linting.
|
||||||
matrix:
|
matrix:
|
||||||
|
- TEST_TYPE=test:coverage
|
||||||
- TEST_TYPE=lint:eslint
|
- TEST_TYPE=lint:eslint
|
||||||
- TEST_TYPE=lint:prettier
|
- TEST_TYPE=lint:prettier
|
||||||
|
|
||||||
@@ -27,4 +28,5 @@ script:
|
|||||||
- |
|
- |
|
||||||
set -e
|
set -e
|
||||||
yarn $TEST_TYPE
|
yarn $TEST_TYPE
|
||||||
|
if [[ $TEST_TYPE == 'test:coverage' ]]; then yarn codecov; fi
|
||||||
set +e
|
set +e
|
||||||
|
Reference in New Issue
Block a user