From ee91b92c4a4d12d3c6ae5714f965eab39f18534a Mon Sep 17 00:00:00 2001 From: squidfunk Date: Mon, 31 Oct 2016 10:16:26 +0100 Subject: [PATCH] Fix wrong path in scripts + try user-level install for pip --- .travis.yml | 4 ++-- bin/build | 2 +- bin/clean | 2 +- bin/lint | 2 +- bin/start | 2 +- bin/test | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index cacb79b7c..eba3523ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ # IN THE SOFTWARE. language: node_js -sudo: true +sudo: false # Node.js versions node_js: @@ -38,7 +38,7 @@ addons: # Install dependencies before_script: - - sudo pip install -r requirements.txt + - pip install --user -r requirements.txt # Perform build and tests script: npm run build diff --git a/bin/build b/bin/build index 1d7e92322..2206fc00d 100755 --- a/bin/build +++ b/bin/build @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d ../node_modules ]]; then +if [[ ! -d $(pwd)/node_modules ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 diff --git a/bin/clean b/bin/clean index 5b5fcf949..3b64578fb 100755 --- a/bin/clean +++ b/bin/clean @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d ../node_modules ]]; then +if [[ ! -d $(pwd)/node_modules ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 diff --git a/bin/lint b/bin/lint index 3660919ce..9b114fce9 100755 --- a/bin/lint +++ b/bin/lint @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d ../node_modules ]]; then +if [[ ! -d $(pwd)/node_modules ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 diff --git a/bin/start b/bin/start index d955357f4..f4dae067b 100755 --- a/bin/start +++ b/bin/start @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d ../node_modules ]]; then +if [[ ! -d $(pwd)/node_modules ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1 diff --git a/bin/test b/bin/test index 6e7b0a91f..867f9fb29 100755 --- a/bin/test +++ b/bin/test @@ -21,7 +21,7 @@ # IN THE SOFTWARE. # Check if "npm install" was executed -if [[ ! -d ../node_modules ]]; then +if [[ ! -d $(pwd)/node_modules ]]; then echo "\"node_modules\" not found:" echo "npm install" exit 1