Skip to content
Snippets Groups Projects
Commit c21c36a5 authored by Ross Cain's avatar Ross Cain
Browse files

Add simple pipeline for build and test

parent 3ae66770
No related branches found
No related tags found
No related merge requests found
stages:
- build
- test
image: node:17
build_app:
stage: build
before_script:
- export NODE_OPTIONS=--openssl-legacy-provider
script:
- yarn install
- yarn upgrade
- yarn run build
- yarn cache clean
unit_test:
stage: test
before_script:
- yarn add chai@4.4.0 mocha mocha-simple-html-reporter mocha-junit-reporter chai-http mocha-test-url
script:
- ./node_modules/mocha/bin/_mocha "test/*.js" --reporter mocha-junit-reporter --reporter-options mochaFile=./testresults/test-results.xml
- ./node_modules/mocha/bin/_mocha "test/*.js" --reporter mocha-simple-html-reporter --reporter-options output=./testresults/test-results.html
after_script:
- echo "unit_test job has run!"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment