test: update ci config

This commit is contained in:
daniel-dx
2019-03-09 23:57:18 +08:00
parent e53ed39614
commit f2cea57357
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -79,13 +79,15 @@ jobs:
- run:
command: npx http-server packages/ncform -p 3000
background: true
- run: ls
- run:
shell: /bin/sh
command: |
wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 10 http://127.0.0.1:3000/examples/components/vue-ncform/_value-default.html
:
- run: cd packages/ncform-e2e && npm run test-ncform:cli
- run: cd packages/ncform-e2e && ls
- run: npx cypress --help
- run: npm run test
- run: npm run test-ncform:cli
workflows:
version: 2
+1
View File
@@ -5,6 +5,7 @@
"description": "ncform e2e test",
"main": "index.js",
"scripts": {
"test": "cypress --version",
"test-ncform:cli": "cross-var \"cypress run --project ./ncform --record --key $NCFORM_E2E_KEY\"",
"test-ncform:ui": "cd ncform && cypress open"
},