1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

run reports test in parallel

This commit is contained in:
Massimo Candela
2020-07-06 02:01:01 +02:00
parent 98301b7a6f
commit f90d7609c4
7 changed files with 108 additions and 29 deletions

View File

@@ -7,13 +7,15 @@ jobs:
- stage: "Tests"
name: "Tests without proxy"
script: npm run test
- name: "Tests reports"
script: npm run test-reports
- name: "Tests with proxy"
before_script:
- npm install -g anyproxy
- nohup anyproxy --port 8001 &
- ANYPROXY_PID=$!
script:
- ./node_modules/.bin/mocha --exit tests/proxy_tests/*.js --require @babel/register
- npm run test-proxy
after_script:
- kill $ANYPROXY_PID