Commit fcb062f4 authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #1280 from tastejs/sjs/redirect-server-output

tests: Silence python logs
parents 13687648 e5d584b8
......@@ -33,7 +33,7 @@ env:
before_script:
# install dependencies
- npm install -g gulp
- python -m SimpleHTTPServer &
- python -m SimpleHTTPServer > /dev/null 2>&1 &
- sleep 2
script:
# We want to gate on passing tests and a successful build
......
......@@ -20,7 +20,14 @@ else
git fetch current && \
cd browser-tests/ && \
npm i && \
git diff HEAD current/master --name-only | awk 'BEGIN {FS = "/"}; {print $1 "/" $2 "/" $3}' | uniq | grep -v \/\/ | grep examples | awk -F '[/]' '{print "--framework=" $2}' | xargs npm run test --
changes=$(git diff HEAD origin/master --name-only | awk 'BEGIN {FS = "/"}; {print $1 "/" $2 "/" $3}' | uniq | grep -v \/\/ | grep examples | awk -F '[/]' '{print "--framework=" $2}')
if [ "${#changes}" = 0 ]
then
exit 0
else
echo changes | xargs npm run test --
fi
exit $?
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment