Skip to content

Commit

Permalink
chore(travis): update travisci to run tests
Browse files Browse the repository at this point in the history
- create .travis.yml file
- add travis badge to readme.md file

[Finishes #164798246]
  • Loading branch information
Kisekka David authored and Kisekka David committed May 2, 2019
1 parent 4bfaa89 commit 5fdc0b3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
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:
- 10.15.3
cache:
directories:
- node_modules
script:
- npm run test:coveralls
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# ah-frontend-prime
# Authors Haven - A Social platform for the creative at heart.

[![Build Status](https://travis-ci.org/andela/ah-frontend-prime.svg?branch=develop)](https://travis-ci.org/andela/ah-frontend-prime)
[![Coverage Status](https://coveralls.io/repos/github/andela/ah-frontend-prime/badge.svg?branch=develop)](https://coveralls.io/github/andela/ah-frontend-prime?branch=develop)
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"test": "jest -u --coverage",
"test:watch": "jest --watch",
"test:coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
"start": "webpack-dev-server --open --hot --mode development",
"build": "webpack --mode production"
},
Expand All @@ -32,6 +33,7 @@
"@babel/preset-env": "^7.4.4",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.5",
"coveralls": "^3.0.3",
"css-loader": "^2.1.1",
"html-webpack-plugin": "^3.2.0",
"jest": "^24.7.1",
Expand Down

0 comments on commit 5fdc0b3

Please sign in to comment.