Skip to content

Commit

Permalink
Merge pull request #2 from luhmann/add-cypress-config-for-ci
Browse files Browse the repository at this point in the history
Add cypress config for ci
  • Loading branch information
luhmann authored Mar 18, 2018
2 parents c5c0aed + 5b29b8a commit 0c4b8dd
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
language: node_js

cache:
directories:
- ~/.npm
- node_modules

branches:
only:
- master

script:
- yarn build
- yarn ci

deploy:
provider: pages
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"start": "bsb -make-world -w",
"clean": "bsb -clean-world",
"test": "cypress run",
"dev": "webpack-serve --mode development"
"dev": "webpack-serve --mode development",
"host": "hs build -p 8080",
"ci": "start-server-and-test host https://localhost:8080 test"
},
"keywords": ["BuckleScript"],
"author": "",
Expand All @@ -26,9 +28,11 @@
"css-loader": "^0.28.10",
"cypress": "^2.1.0",
"html-webpack-plugin": "^3.0.4",
"http-server": "^0.11.1",
"mini-css-extract-plugin": "^0.2.0",
"postcss-loader": "^2.1.1",
"purgecss-webpack-plugin": "^0.20.1",
"start-server-and-test": "^1.1.0",
"style-loader": "^0.20.2",
"tailwindcss": "^0.4.2",
"webapp-webpack-plugin": "^1.1.2",
Expand Down
Loading

0 comments on commit 0c4b8dd

Please sign in to comment.