Skip to content

Commit

Permalink
ci: separate ci and local test
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Oct 7, 2019
1 parent 8047a4c commit d6d3ada
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ before_script:
- sleep 3
- fluxbox &

script:
- npm run test:ci

after_success:
- npm run coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"scripts": {
"version": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"build: update changelog\"",
"test": "npm run test:e2e",
"test": "testcafe \"chrome:headless\" tests/e2e/*-test.js --app \"http-server ./ -s\"",
"test:ci": "npm run test:e2e",
"test:e2e": "npm run build && npm run testcafe",
"testcafe": "testcafe all tests/e2e/*-test.js --app \"http-server ./ -s\"",
"precommit": "clinton && lint-staged",
Expand Down

0 comments on commit d6d3ada

Please sign in to comment.