Skip to content

Commit 5e8b647

Browse files
committed
Add travis tests
1 parent 502cbb2 commit 5e8b647

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,12 @@ install:
1616

1717
script:
1818
- yarn build
19+
20+
- if node bin/checkpack.js webpack -e tests/bad_build.ts --validate; then (exit 1) else (exit 0) fi
21+
- node bin/checkpack.js webpack -e tests/good_build.ts --validate
22+
23+
- if node bin/checkpack.js vanillajs -e tests/bad_build.ts --validate; then (exit 1) else (exit 0) fi
24+
- node bin/checkpack.js vanillajs -e tests/good_build.ts --validate
25+
26+
- if node bin/checkpack.js browserify -e tests/bad_build.ts --validate; then (exit 1) else (exit 0) fi
27+
- node bin/checkpack.js browserify -e tests/good_build.ts --validate

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Checkpack
1+
Checkpack [![Build Status](https://travis-ci.org/cursedcoder/checkpack.svg?branch=master)](https://travis-ci.org/cursedcoder/checkpack)
22
=========
33

44
Check your library integration with typescript and packagers such as webpack.

tests/bad_build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
eval('dis dasnt work*((L');

tests/good_build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('hello world');

0 commit comments

Comments
 (0)