Skip to content

Commit d6d3ada

Browse files
committed
ci: separate ci and local test
1 parent 8047a4c commit d6d3ada

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@ before_script:
2323
- sleep 3
2424
- fluxbox &
2525

26+
script:
27+
- npm run test:ci
28+
2629
after_success:
2730
- npm run coverage

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
},
1818
"scripts": {
1919
"version": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"build: update changelog\"",
20-
"test": "npm run test:e2e",
20+
"test": "testcafe \"chrome:headless\" tests/e2e/*-test.js --app \"http-server ./ -s\"",
21+
"test:ci": "npm run test:e2e",
2122
"test:e2e": "npm run build && npm run testcafe",
2223
"testcafe": "testcafe all tests/e2e/*-test.js --app \"http-server ./ -s\"",
2324
"precommit": "clinton && lint-staged",

0 commit comments

Comments
 (0)