Skip to content

Commit

Permalink
show some errors and make n be local
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlucas committed Mar 14, 2014
1 parent 07979d3 commit d64ec5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
10 changes: 7 additions & 3 deletions test/pre_travis.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ELLOG_HEADING="launchctl"
source "$DIR"/ellog.bash

N=$(which n)
if [[ $? != "0" ]]; then
ellog_info "n" "not installed"
ellog_info "n" "installing..."
git clone https://github.com/visionmedia/n
cd n
make install
cd ..
cp n/bin/n .
else
ellog_info "n" "already installed"
fi
13 changes: 2 additions & 11 deletions test/travis.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export N_PREFIX="$DIR/versions"
ELLOG_HEADING="launchctl"
source "$DIR"/ellog.bash

N=$(which n)
if [[ $? != "0" ]]; then
ellog_info "n" "not installed"
ellog_info "n" "installing..."
git clone https://github.com/visionmedia/n
cd n
make install
cd ..
fi

VERSIONS=("0.8.26" "0.10.20" "0.10.21" "0.10.22" "0.10.23" "0.10.24" "0.10.25" "0.10.26" "0.11.6" "0.11.7" "0.11.8" "0.11.9" "0.11.10")

# 0.11.11 botched addons
# 0.11.12 messed up MakeCallback so async addon functions fail

for vers in ${VERSIONS[*]}; do
n "$vers"
./n "$vers"
ellog_info "$vers" "installing dependencies"
npm install --silent >/dev/null
if [[ $? != "0" ]]; then
Expand Down

0 comments on commit d64ec5a

Please sign in to comment.