From 7bfdbbf511183468521bd3f588cb01359bd557e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20GOUIN?= Date: Wed, 19 Jun 2019 13:01:11 +0200 Subject: [PATCH] Fixed install script --- .travis.yml | 7 +++++-- package.json | 2 +- src/postinstall.js | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b745923..aa98b10 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,10 +6,13 @@ cache: npm: true directories: - node_modules -before_install: - - chmod +x src/postinstall.js +addons: + apt: + packages: + - graphviz install: - npm install + - npm install node-plantuml before_script: - npm install -g jshint script: diff --git a/package.json b/package.json index 9ab4569..63e60c2 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "scripts": { "test": "jest", - "install": "src/postinstall.js" + "install": "node src/postinstall.js" }, "repository": { "type": "git", diff --git a/src/postinstall.js b/src/postinstall.js index e9754f0..3b68c2b 100644 --- a/src/postinstall.js +++ b/src/postinstall.js @@ -14,5 +14,5 @@ ncp('./sample_data/',dir, function(err){ if(err) console.error(err); else - console.log('done'); + console.log(`sample data copied to ${dir}`); }); \ No newline at end of file