Skip to content

Commit

Permalink
Fixed dependencies and initial travis
Browse files Browse the repository at this point in the history
- updated repository url
- fixed cta-oss related dependencies to use github
- edited engine to use node 6 or greater
- initial .travis.yml
- added coverallls npm script that using in travis job
- added coveralls and codecov modules
- updated badge in readme.md to use travis, coveralls and codecov
  • Loading branch information
Kiettisak Angkanawin committed Jan 5, 2018
1 parent 4946769 commit 9d4d7c2
Show file tree
Hide file tree
Showing 4 changed files with 2,523 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: node_js
sudo: false
cache:
directories:
- "node_modules"

node_js:
- "lts/*"
- "8"
- "6"
- "node"
matrix:
allow_failures:
- node_js: "node"

install:
- npm install

jobs:
include:
- stage: test
script: npm run lint
env: lint
- script: npm run test
env: unit_test
- script: npm run coveralls
env: coverage
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# cta-brick [ ![build status](https://git.sami.int.thomsonreuters.com/compass/cta-brick/badges/master/build.svg)](https://git.sami.int.thomsonreuters.com/compass/cta-brick/commits/master) [![coverage report](https://git.sami.int.thomsonreuters.com/compass/cta-brick/badges/master/coverage.svg)](https://git.sami.int.thomsonreuters.com/compass/cta-brick/commits/master)
# cta-brick
[![Build Status](https://travis-ci.org/thomsonreuters/cta-brick.svg?branch=master)](https://travis-ci.org/thomsonreuters/cta-brick)
[![Coverage Status](https://coveralls.io/repos/github/thomsonreuters/cta-brick/badge.svg?branch=master)](https://coveralls.io/github/thomsonreuters/cta-brick?branch=master)
[![codecov](https://codecov.io/gh/thomsonreuters/cta-brick/branch/master/graph/badge.svg)](https://codecov.io/gh/thomsonreuters/cta-brick)

Brick Modules for Compass Test Automation, One of Libraries in CTA-OSS Framework

Expand Down
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
"Song An Bui <songan.bui@thomsonreuters.com>"
],
"author": "CTA Team <cta@thomsonreuters.com>",
"repository": {
"type": "git",
"url": "https://github.com/thomsonreuters/cta-brick.git"
},
"engines": {
"node": "6.9.4"
"node": ">=6"
},
"dependencies": {
"cta-logger": "git+ssh://git@git.sami.int.thomsonreuters.com:compass/cta-logger.git#1.0.0",
"co": "~4.0.0",
"cta-logger": "thomsonreuters/cta-logger#1.0.0",
"es6-promisify": "^3.0.0"
},
"directories": {
Expand All @@ -21,8 +25,10 @@
"devDependencies": {
"chai": "^3.4.0",
"chai-as-promised": "^5.1.0",
"codecov": "^3.0.0",
"coveralls": "^3.0.0",
"eslint": "^3.2.2",
"eslint-config-cta": "git+ssh://git@git.sami.int.thomsonreuters.com:compass/eslint-config-cta.git",
"eslint-config-cta": "^1.0.1",
"istanbul": "^0.4.1",
"jsdoc": "^3.4.0",
"jsdoc-to-markdown": "^1.3.6",
Expand All @@ -36,6 +42,7 @@
"scripts": {
"test": "NODE_PATH=. _mocha",
"codecoverage": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec",
"coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && codecov",
"lint": "eslint --quiet lib test",
"docs": "jsdoc --readme README.md lib -r -d docs && opener ./docs/index.html"
},
Expand Down

0 comments on commit 9d4d7c2

Please sign in to comment.