Skip to content

Commit

Permalink
chore: test travis + cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanguinho committed Jun 5, 2020
1 parent 416d180 commit 53b21fe
Show file tree
Hide file tree
Showing 6 changed files with 270 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .huskyrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test:ci"
"pre-push": "npm run test:ci && npm run test:cypress:ci"
}
}
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
language: node_js
node_js:
- 12
addons:
apt:
packages:
- libgconf-2-4
cache:
npm: true
directories:
- ~/.cache
script:
- eslint 'src/**'
- npm run test:coveralls
- npm run test:cypress:ci
deploy:
provider: heroku
api_key: $HEROKU_API
Expand Down
3 changes: 2 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"fixturesFolder": "src/main/test/cypress/fixtures",
"supportFile": "src/main/test/cypress/support/index.js",
"pluginsFile": "src/main/test/cypress/plugins/index.js",
"integrationFolder": "src/main/test/cypress/integration"
"integrationFolder": "src/main/test/cypress/integration",
"video": false
}
252 changes: 251 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@
"license": "GNU GPL3",
"scripts": {
"start": "node index",
"dev": "webpack-dev-server --open --config webpack.dev.js",
"dev:base": "webpack-dev-server --config webpack.dev.js",
"dev": "npm run dev:base -- --open",
"build": "webpack --config webpack.prod.js",
"test": "cross-env NODE_ICU_DATA=node_modules/full-icu jest --passWithNoTests --no-cache --runInBand",
"test:watch": "npm test -- --watch",
"test:staged": "npm test -- --findRelatedTests",
"test:ci": "npm test -- --coverage",
"test:coveralls": "npm run test:ci && coveralls < coverage/lcov.info",
"test:cypress": "cypress open",
"test:cypress:run": "cypress run",
"test:cypress:ci": "start-server-and-test dev:base http-get://localhost:8080 test:cypress:run",
"check": "npm-check -u -s"
},
"devDependencies": {
Expand Down Expand Up @@ -53,6 +56,7 @@
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^4.14.1",
"sass-loader": "^8.0.2",
"start-server-and-test": "^1.11.0",
"style-loader": "^1.2.1",
"ts-jest": "^26.1.0",
"ts-loader": "^7.0.5",
Expand Down
Loading

0 comments on commit 53b21fe

Please sign in to comment.