Skip to content

Commit

Permalink
try to add travis and coverals
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyshlyaev177 committed Jul 20, 2018
1 parent 93c5ccc commit 9fb36a0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-ci
repo_token: tMwxnbannXSXlH4pDZ0UuvqZL2Yg0D3Fm
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
node_js:
- "lts/*"
cache:
directories:
- node_modules

script: echo "Running tests against $(node -v)..."
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

![example](/sample.gif)

[![Build Status](https://travis-ci.org/asmyshlyaev177/react-horizontal-scrolling-menu.svg?branch=master)](https://travis-ci.org/asmyshlyaev177/react-horizontal-scrolling-menu)
[![Coverage Status](https://coveralls.io/repos/github/asmyshlyaev177/react-horizontal-scrolling-menu/badge.svg?branch=master)](https://coveralls.io/github/asmyshlyaev177/react-horizontal-scrolling-menu?branch=master)

[Demo](https://asmyshlyaev177.github.io/react-horizontal-scrolling-menu)

This is horizontal scrolling menu component for React.
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"scripts": {
"start": "webpack --env.development --mode development --watch",
"build": "webpack --env.production --mode production",
"test": "jest",
"test:watch": "jest --watch"
"test": "node node_modules/.bin/jest --coverage --coverageReporters=text-lcov | ./node_modules/coveralls/bin/coveralls.js",
"test:watch": "jest --watch",
"coveralls": "jscoverage lib && YOURPACKAGE_COVERAGE=1 nodeunit --reporter=lcov test | coveralls"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -48,12 +49,15 @@
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"babel-preset-stage-3": "^6.24.1",
"coveralls": "^3.0.2",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^5.1.0",
"eslint-plugin-react": "^7.10.0",
"jest": "^23.4.0",
"jscoverage": "^0.6.0",
"jsdom": "^11.11.0",
"nodeunit": "^0.11.3",
"prop-types": "^15.6.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
Expand Down
1 change: 1 addition & 0 deletions src/scrollMenu.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable no-undef */
/* eslint-disable react/react-in-jsx-scope */
/* eslint-disable no-unused-vars */

import ScrollMenu, { Arrow, innerStyle, InnerWrapper } from './scrollMenu';

describe('test Arrow', () => {
Expand Down

0 comments on commit 9fb36a0

Please sign in to comment.