Skip to content

Commit

Permalink
Setting up travis based continuous integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
karmacoma committed Dec 19, 2016
1 parent e9ea789 commit d9d2b6f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .travis.yml
@@ -0,0 +1,15 @@
dist: 'trusty'
language: node_js
node_js:
- '0.12'
services:
- postgresql
addons:
postgresql: '9.6'
before_script:
- createdb lisk_test
- psql -d lisk_test -c "alter user "$USER" with password 'password';"
- wget https://downloads.lisk.io/lisk-node/lisk-node-Linux-x86_64.tar.gz
- tar -zxvf lisk-node-Linux-x86_64.tar.gz
- cp test/config.json test/genesisBlock.json .
- node app.js &> /dev/null &
15 changes: 15 additions & 0 deletions Gruntfile.js
Expand Up @@ -113,6 +113,19 @@ module.exports = function (grunt) {
'test/api/**/*.js',
'test/unit/**/*.js'
]
},

mochaTest: {
test: {
options: {
reporter: 'spec',
quiet: false,
clearRequireCache: false,
noFail: false,
timeout: '250s'
},
src: ['test']
}
}
});

Expand All @@ -123,7 +136,9 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-mocha-test');

grunt.registerTask('default', ['release']);
grunt.registerTask('release', ['exec:folder', 'obfuscator', 'exec:package', 'exec:build', 'compress']);
grunt.registerTask('travis', 'mochaTest', 'jshint');
};
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -3,6 +3,7 @@
Lisk is a next generation crypto-currency and decentralized application platform, written entirely in JavaScript. For more information please refer to our website: https://lisk.io/.

[![Join the chat at https://gitter.im/LiskHQ/lisk](https://badges.gitter.im/LiskHQ/lisk.svg)](https://gitter.im/LiskHQ/lisk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/LiskHQ/lisk.svg?branch=development)](https://travis-ci.org/LiskHQ/lisk)

## Installation

Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"start": "node app.js",
"test": "./node_modules/.bin/mocha",
"test": "./node_modules/.bin/grunt travis --verbose",
"cov": "./node_modules/.bin/mocha --require blanket -R html-cov test/helpers test/logic > tmp/coverage.html"
},
"author": "Boris Povod <boris@crypti.me>, Pavel Nekrasov <landgraf.paul@gmail.com>, Oliver Beddows <oliver@lisk.io>",
Expand Down Expand Up @@ -62,6 +62,7 @@
"grunt-contrib-jshint": "=1.0.0",
"grunt-exec": "=1.0.1",
"grunt-jsdox": "=0.1.7",
"grunt-mocha-test": "=0.13.2",
"grunt-obfuscator": "=0.1.0",
"jsdox": "=0.4.10",
"jshint": "=2.9.3",
Expand Down

0 comments on commit d9d2b6f

Please sign in to comment.