Implemented travis, testing

This commit is contained in:
Jeremi Nieminen
2018-09-16 21:09:41 +03:00
parent 01e0785499
commit 4318049531
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
language: node_js
install:
- npm install
script:
- npm run test
+2
View File
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/ohtuprojekti-ilmo/ohtuilmo-backend.svg?branch=master)](https://travis-ci.org/ohtuprojekti-ilmo/ohtuilmo-backend)
## Installation
Clone and run:
npm install
+1 -1
View File
@@ -6,7 +6,7 @@
"scripts": {
"watch": "cross-env NODE_ENV=development nodemon index.js",
"start": "cross-env NODE_ENV=production node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"No tests specified\" && exit 0"
},
"repository": {
"type": "git",