Skip to content

Commit 3600fbd

Browse files
Anwesha NaskarAnwesha Naskar
Anwesha Naskar
authored and
Anwesha Naskar
committed
ci(travis tests): removes slow tests from travis
1 parent 9b18e8a commit 3600fbd

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ before_install:
1111
- npm install -g typescript
1212
script:
1313
- tsc
14-
- npm test
14+
- [[ "$TRAVIS_COMMIT_MESSAGE" =~ \[semver\ (major|minor|patch)\] ]] && npm test
15+
- npm test-travis
1516
- sh scripts/typedoc/generate_typedoc.sh
1617
after_success:
1718
- npm run report-coverage

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"test-integration": "mocha test/integration",
115115
"test-unit": "mocha test/unit/",
116116
"test": "nyc mocha test/unit/ test/integration/ && nyc report --reporter=html",
117+
"test-travis": "nyc mocha test/unit/ test/integration/ --grep @slow --invert && nyc report --reporter=html",
117118
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov",
118119
"watch-doc": "nodemon --watch ./ --ext js,tmpl,json --ignore dist/ --ignore doc/ --ignore test/ --ignore examples/ --exec npm run doc",
119120
"watch": "npm run test-unit -- --watch",

test/integration/test.visual_recognition.custom_classifiers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe('visual_recognition_integration_custom_classifiers', function() {
129129
});
130130
}); // custom classifiers
131131

132-
describe('pre-populated classifier', function() {
132+
describe('pre-populated classifier @slow', function() {
133133
let classifier_id;
134134

135135
before(function() {

0 commit comments

Comments
 (0)