Configured CI.
h3rald h3rald@h3rald.com
Tue, 21 Apr 2020 13:39:03 +0200
3 files changed,
43 insertions(+),
1 deletions(-)
A
.travis.yml
@@ -0,0 +1,16 @@
+sudo: false +language: node_js +node_js: +- '12' +branches: + only: + - master +cache: + directories: + - node_modules +before_install: +- npm update +install: +- npm install +script: +- npm run coverage
M
package-lock.json
→
package-lock.json
@@ -1948,6 +1948,19 @@ "resolved": "https://artifacts.industrysoftware.automation.siemens.com/artifactory/api/npm/npm/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, + "coveralls": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.11.tgz", + "integrity": "sha512-LZPWPR2NyGKyaABnc49dR0fpeP6UqhvGq4B5nUrTQ1UBy55z96+ga7r+/ChMdMJUwBgyJDXBi88UBgz2rs9IiQ==", + "dev": true, + "requires": { + "js-yaml": "^3.13.1", + "lcov-parse": "^1.0.0", + "log-driver": "^1.2.7", + "minimist": "^1.2.5", + "request": "^2.88.0" + } + }, "cross-spawn": { "version": "6.0.5", "resolved": "https://artifacts.industrysoftware.automation.siemens.com/artifactory/api/npm/npm/cross-spawn/-/cross-spawn-6.0.5.tgz",@@ -3560,6 +3573,12 @@ "resolved": "https://artifacts.industrysoftware.automation.siemens.com/artifactory/api/npm/npm/kleur/-/kleur-3.0.3.tgz",
"integrity": "sha1-p5yezIbuHOP6YgbRIWxQHxR/wH4=", "dev": true }, + "lcov-parse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-1.0.0.tgz", + "integrity": "sha1-6w1GtUER68VhrLTECO+TY73I9+A=", + "dev": true + }, "leven": { "version": "3.1.0", "resolved": "https://artifacts.industrysoftware.automation.siemens.com/artifactory/api/npm/npm/leven/-/leven-3.1.0.tgz",@@ -3610,6 +3629,12 @@ "lodash.sortby": {
"version": "4.7.0", "resolved": "https://artifacts.industrysoftware.automation.siemens.com/artifactory/api/npm/npm/lodash.sortby/-/lodash.sortby-4.7.0.tgz", "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "dev": true + }, + "log-driver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz", + "integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==", "dev": true }, "lolex": {
M
package.json
→
package.json
@@ -5,7 +5,7 @@ "description": "A tiny, extremely minimalist JavaScript microframework.",
"main": "h3.js", "scripts": { "test": "jest", - "coverage": "jest --coverage", + "coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls", "copy": "cp h3.js docs/js/h3.js && cp h3.js docs/example/assets/js/h3.js", "guide": "hastyscribe docs/H3_DeveloperGuide.md" },@@ -33,6 +33,7 @@ "homepage": "https://h3.js.org",
"devDependencies": { "@babel/plugin-transform-modules-commonjs": "^7.9.0", "@babel/preset-env": "^7.9.5", + "coveralls": "^3.0.11", "jest": "^25.3.0" } }