Skip to content

Commit

Permalink
#66: Displayless GUI for nodewebkit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Aug 30, 2014
1 parent 58c0991 commit fa4d955
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions scripts/travis-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,34 @@ before-install() {
#TRAVIS_TAG=v0.12.0
else
sudo apt-get install curl
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start +extension RANDR
sleep 5
fi

# We only check on a PR
# We only check on a PR
if [ $TRAVIS_PULL_REQUEST != "false" ]; then
if [ ! -z $TRAVIS_TAG ]; then
if [ $COMMIT_MINOR -le $CURRENT_MINOR ]; then
echo "Illegal minor version number. Please use grunt release to roll an official release."
exit 666
exit 666
else
if [ $COMMIT_PATCH -ne 0 ]; then
echo "Illegal patch version number. Should be 0 on a minor version bump. Please use grunt release to bump the version."
exit 666
exit 666
fi
fi
else
if [ $COMMIT_MINOR -ne $CURRENT_MINOR ]; then
echo "Illegal minor version number. Minor versions should only change on a tag and release."
exit 666
exit 666
fi
if [ $COMMIT_PATCH -le $CURRENT_PATCH ]; then
echo "Illegal patch version number. Please use grunt version to bump the version."
exit 666
exit 666
fi
fi
fi
fi
fi
}

#$ node -pe 'JSON.parse(process.argv[1]).foo' "$(cat foobar.json)"
Expand All @@ -65,7 +68,6 @@ before-install() {
#
before-script() {
sudo apt-get install jq
sudo apt-get install curl libc6 libcurl3 zlib1g
sudo apt-get install python-pip
sudo pip install --upgrade httpie
npm install -g grunt-cli bower
Expand All @@ -77,7 +79,7 @@ before-script() {
# Run the tests.
#
script() {
grunt test
DISPLAY=:99.0 grunt test
}

# after-script
Expand Down

0 comments on commit fa4d955

Please sign in to comment.