|
|
@ -8,8 +8,9 @@ node_js: |
|
|
|
env: |
|
|
|
matrix: |
|
|
|
- TEST_TYPE=lint |
|
|
|
- TEST_TYPE=dist |
|
|
|
- TEST_TYPE=compile |
|
|
|
- TEST_TYPE=test:dist |
|
|
|
- TEST_TYPE=test:lib |
|
|
|
- TEST_TYPE=test:es |
|
|
|
- TEST_TYPE=test:dom |
|
|
|
- TEST_TYPE=test:node |
|
|
|
|
|
|
@ -21,18 +22,18 @@ script: |
|
|
|
- | |
|
|
|
if [ "$TEST_TYPE" = lint ]; then |
|
|
|
npm run lint |
|
|
|
elif [ "$TEST_TYPE" = dist ]; then |
|
|
|
elif [ "$TEST_TYPE" = test:dist ]; then |
|
|
|
npm run dist && \ |
|
|
|
node ./tests/dekko/dist.test.js && \ |
|
|
|
LIB_DIR=dist npm test -- --coverage -w 2 |
|
|
|
elif [ "$TEST_TYPE" = compile ]; then |
|
|
|
npm run dist && \ |
|
|
|
LIB_DIR=dist npm test -- -w 2 |
|
|
|
elif [ "$TEST_TYPE" = test:lib ]; then |
|
|
|
npm run compile && \ |
|
|
|
node ./tests/dekko/lib.test.js && \ |
|
|
|
LIB_DIR=es npm test -- --coverage -w 2 && \ |
|
|
|
LIB_DIR=lib npm test -- --coverage -w 2 |
|
|
|
LIB_DIR=lib npm test -- -w 2 |
|
|
|
elif [ "$TEST_TYPE" = test:es ]; then |
|
|
|
npm run compile && \ |
|
|
|
LIB_DIR=es npm test -- -w 2 |
|
|
|
elif [ "$TEST_TYPE" = test:dom ]; then |
|
|
|
npm run dist && \ |
|
|
|
npm test -- --coverage -w 2 && \ |
|
|
|
bash <(curl -s https://codecov.io/bash) |
|
|
|
elif [ "$TEST_TYPE" = test:node ]; then |
|
|
|