Skip to content

Commit 9b492df

Browse files
committed
update ci
1 parent d4ba181 commit 9b492df

File tree

2 files changed

+31
-39
lines changed

2 files changed

+31
-39
lines changed

.circleci/config.yml

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

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: node_js
2+
3+
sudo: false
4+
5+
notifications:
6+
email:
7+
- smith3816@gmail.com
8+
9+
node_js:
10+
- 10
11+
12+
before_install:
13+
- |
14+
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/'
15+
then
16+
echo "Only docs were updated, stopping build process."
17+
exit
18+
fi
19+
script:
20+
- |
21+
if [ "$TEST_TYPE" = test ]; then
22+
npm test -- --coverage && \
23+
bash <(curl -s https://codecov.io/bash)
24+
else
25+
npm run $TEST_TYPE
26+
fi
27+
env:
28+
matrix:
29+
- TEST_TYPE=lint
30+
- TEST_TYPE=test
31+
- TEST_TYPE=test:15

0 commit comments

Comments
 (0)