Changes in testing config

- removed atrifact and result storage because they don't exist
- renamed dependency install
- changed loglevel
pull/10/head
Julius Riegel 6 years ago
parent ba4c3f9da4
commit 7642a57c37

@ -7,12 +7,12 @@ jobs: # a collection of steps
steps: # a collection of executable commands steps: # a collection of executable commands
- checkout # special step to check out source code to working directory - checkout # special step to check out source code to working directory
- run: - run:
name: update-npm name: Update npm
command: 'sudo npm install -g npm@latest' command: 'sudo npm install -g npm@latest'
- restore_cache: # special step to restore the dependency cache - restore_cache: # special step to restore the dependency cache
key: dependency-cache-{{ checksum "package.json" }} key: dependency-cache-{{ checksum "package.json" }}
- run: - run:
name: install-npm-wee name: Install dependencies
command: npm install command: npm install
- save_cache: # special step to save the dependency cache - save_cache: # special step to save the dependency cache
key: dependency-cache-{{ checksum "package.json" }} key: dependency-cache-{{ checksum "package.json" }}
@ -20,7 +20,7 @@ jobs: # a collection of steps
- ./node_modules - ./node_modules
- run: # run tests - run: # run tests
name: Start server in background name: Start server in background
command: node server.js --port=8880 command: node server.js --port=8880 --loglevel=debug
background: true background: true
- run: - run:
name: Valid HTTP Request to server name: Valid HTTP Request to server
@ -30,13 +30,5 @@ jobs: # a collection of steps
command: 'wget --retry-connrefused --waitretry=1 --timeout=15 -t 10 http://localhost:8880/invalid || :' command: 'wget --retry-connrefused --waitretry=1 --timeout=15 -t 10 http://localhost:8880/invalid || :'
- run: - run:
name: Run server without request name: Run server without request
command: node server.js --test --port=8888 command: node server.js --test --port=8888 --loglevel=debug
- store_artifacts: # special step to save test results as as artifact
path: test-results.xml
prefix: tests
- store_artifacts:
path: coverage
prefix: coverage
- store_test_results: # special step to upload test results for display in Test Summary
path: test-results.xml
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples # See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples

Loading…
Cancel
Save