Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1d61c9e
Test code coverage reporting
frederickjansen Feb 19, 2020
32a76cf
Try again with matrix expansion
frederickjansen Feb 19, 2020
82e59f8
Fix yml file
frederickjansen Feb 19, 2020
650aa23
Debug travis workspace issue
frederickjansen Feb 20, 2020
e272e65
Debug travis workspace issue
frederickjansen Feb 20, 2020
77525e6
Debug travis workspace issue
frederickjansen Feb 20, 2020
1661ba3
Debug travis workspace issue
frederickjansen Feb 20, 2020
2e683be
Debug travis workspace issue
frederickjansen Feb 20, 2020
75e59e7
Debug travis workspace issue
frederickjansen Feb 20, 2020
433d93e
Test different workspaces
frederickjansen Feb 24, 2020
f2b874b
Test different workspaces
frederickjansen Feb 24, 2020
b277f47
Try adding all jobs again
frederickjansen Feb 24, 2020
7457a2f
Remove debug code and rename jobs
frederickjansen Feb 24, 2020
36a9fb3
Try without naming jobs
frederickjansen Feb 28, 2020
c5f45aa
Add Coveralls badge
frederickjansen Feb 28, 2020
75af73a
Remove specific branch from badge
frederickjansen Feb 28, 2020
0c14001
Merge branch 'master' into coveralls
frederickjansen Mar 17, 2020
6fe5ae4
Add demo tests to coveralls
KinanBab Mar 20, 2020
d8ed0eb
Merge branch 'master' into coveralls
KinanBab Mar 20, 2020
b562cde
testing travis after_failure hook
KinanBab Mar 21, 2020
8e38dee
Improve logs in tests and dump logs in travis on failure or timeout
KinanBab Mar 21, 2020
4e8d07d
fix typo
KinanBab Mar 21, 2020
7f5bf65
Fix another typo in .dump_log.sh
KinanBab Mar 21, 2020
ab008d8
Merge branch 'master' into coveralls
frederickjansen Oct 30, 2020
03896b0
Fix Travis demo command
frederickjansen Oct 30, 2020
f6d797d
Merge branch 'master' into coveralls
gxavier38 Jun 25, 2021
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Test code coverage reporting
  • Loading branch information
frederickjansen committed Feb 19, 2020
commit 1d61c9e816384424ab5a1777425544f084113f06
71 changes: 43 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,49 @@ before_install:
- git submodule update --init --recursive
# End submodules fix
node_js:
- '10'
env:
- DEMOS="TRUE"
- TEST_NAME='base' TEST_SUITE=''
- TEST_NAME='bigNumber' TEST_SUITE=''
- TEST_NAME='negativeNumber' TEST_SUITE=''
- TEST_NAME='bigNumber-negativeNumber' TEST_SUITE=''
- TEST_NAME='restAPI' TEST_SUITE=''
- TEST_NAME='bits' TEST_SUITE=''
- TEST_NAME='fixedpoint' TEST_SUITE='share'
- TEST_NAME='fixedpoint' TEST_SUITE='arithmetic'
- TEST_NAME='fixedpoint' TEST_SUITE='constant arithmetic'
- TEST_NAME='fixedpoint' TEST_SUITE='constant comparison'
- TEST_NAME='fixedpoint' TEST_SUITE='comparison'
- TEST_NAME='fixedpoint' TEST_SUITE='ifelse'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='share'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='arithmetic'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='constant arithmetic'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='constant comparison'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='comparison'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='ifelse'
script:
- while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done &
- if [ "$DEMOS" == "TRUE" ]; then npm run-script test-demo -- \*; else npm run test -- "$TEST_NAME" "$TEST_SUITE"; fi
- kill %1
cache:
directories:
- node_modules
- '10'
jobs:
include:
- stage: SETUP
script: mkdir .nyc_output
workspaces:
create:
name: coverage
paths:
- ./.nyc_output
- stage: TEST
env:
- DEMOS="TRUE"
- TEST_NAME='base' TEST_SUITE=''
- TEST_NAME='bigNumber' TEST_SUITE=''
- TEST_NAME='negativeNumber' TEST_SUITE=''
- TEST_NAME='bigNumber-negativeNumber' TEST_SUITE=''
- TEST_NAME='restAPI' TEST_SUITE=''
- TEST_NAME='bits' TEST_SUITE=''
- TEST_NAME='fixedpoint' TEST_SUITE='share'
- TEST_NAME='fixedpoint' TEST_SUITE='arithmetic'
- TEST_NAME='fixedpoint' TEST_SUITE='constant arithmetic'
- TEST_NAME='fixedpoint' TEST_SUITE='constant comparison'
- TEST_NAME='fixedpoint' TEST_SUITE='comparison'
- TEST_NAME='fixedpoint' TEST_SUITE='ifelse'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='share'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='arithmetic'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='constant arithmetic'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='constant comparison'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='comparison'
- TEST_NAME='fixedpoint-negativeNumber' TEST_SUITE='ifelse'
script:
- while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done &
- if [ "$DEMOS" == "TRUE" ]; then npm run-script test-demo -- \*; else npm run coverage -- "$TEST_NAME" "$TEST_SUITE"; fi
- kill %1
workspaces:
use: coverage
- stage: REPORT
script: npm run coverage:report
workspaces:
use: coverage


notifications:
slack:
secure: DuaE/q/B/la8rNGXsn/p3owtWZmn6th1rAJUXTIUUU48OjE86ehzMD40JMLMyAty3f/NHYOPufS7//AfpaIf4cGE6/4wHcTVoLOzRv6aP7WM0SvMy1WS5QgP7ryIjciyXFczknQ+JSMcXlxQDKtMCT7wBIwQO1WrB+T8e617y575t/ofO39k9Za1NA81MlrdWxTIWTDGMo17T+Pd/zz4ImHGYoifUzXi9DdH/4Zgy9SJxWQJ3PO/5RWef4qu1mBGXdanIEd63mYjIIQh8nJLn3pvWp7rQnChmwRqURDc6hpwdPJqeWO5knqhNlu/u7/TJI985rvTOPYljXfReXdF1OEHuq+prWGhv4VbxJzTpQ9PJZ42Ac1k6nCaMCJfCphpsUL48+qgeRY9IyBoqARw4Ne8hTerc7P0T/iQxgZk8zVVahdf0C27sPD0B563gMWvFKxW41YbvHwku7CpReaCt+pcGTd77p+v0mGZGlWNv/kV6KXMBHmQXGYEdVSpscEdlFbByZKagY8lrsadyZtaAaUCdD4VRGaYCWPh/+eBsVdS94r7XRHXBceiSd3ZY093r7lMO9yGnyDwqSydL7JgncO/GxWMhsEz2vRV+bgZlLU2yo60H8Kg1jvmpVP3o0d8wfkDUyLVOkJiSDZ+LuhQZ10f1MnP3AtVrMJFEKITmqw=
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"scripts": {
"test": "./tests/suite/test.sh",
"suite": "./tests/suite/suite.sh",
"coverage": "nyc --no-clean npm run test",
"coverage:report": "nyc report --reporter=text-lcov | coveralls",
"gen-docs": "./node_modules/.bin/jsdoc -r -c docs/jsdoc.conf.json && sed -i -e 's/lib\\/ext\\/README.md/extensions.html/g' docs/jsdoc/*.html && sed -i -e 's/lib\\/ext\\/Hooks.md/hooks.html/g' docs/jsdoc/*.html && sed -i -e 's/Hooks.md/hooks.html/g' docs/jsdoc/*.html && sed -i -e 's/CONTRIBUTING.md/CONTRIBUTING.html/g' docs/jsdoc/*.html",
"test-demo": "./demos/run-test.sh",
"fix-memory-limit": "cross-env LIMIT=4096 increase-memory-limit",
Expand All @@ -66,13 +68,16 @@
"devDependencies": {
"browserify": "^16.5.0",
"chai": "^4.1.2",
"coveralls": "^3.0.9",
"eslint": "^4.19.1",
"eslint-plugin-requirejs": "^2.0.1",
"express": "^4.16.3",
"jsdoc": "^3.6.3",
"marked": "^0.7.0",
"minimist": "^1.2.0",
"mocha": "^4.0.1",
"neptune-notebook": "^1.1.1"
"mocha-lcov-reporter": "^1.3.0",
"neptune-notebook": "^1.1.1",
"nyc": "^15.0.0"
}
}