2016-03-15 19:23:49 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ $DOCKER ]]; then
|
2017-09-11 18:39:41 +02:00
|
|
|
docker run --privileged -v "$PWD:/outside" -e "QUTE_BDD_WEBENGINE=$QUTE_BDD_WEBENGINE" -e "DOCKER=$DOCKER" -e "CI=$CI" "qutebrowser/travis:$DOCKER"
|
2017-09-10 13:17:21 +02:00
|
|
|
elif [[ $TESTENV == eslint ]]; then
|
|
|
|
# Can't run this via tox as we can't easily install tox in the javascript travis env
|
|
|
|
cd qutebrowser/javascript || exit 1
|
|
|
|
eslint --color .
|
2016-03-15 19:23:49 +01:00
|
|
|
else
|
2016-03-16 06:22:36 +01:00
|
|
|
args=()
|
2017-02-05 12:58:37 +01:00
|
|
|
[[ $TRAVIS_OS_NAME == osx ]] && args=('--qute-bdd-webengine' '--no-xvfb')
|
2016-03-16 06:22:36 +01:00
|
|
|
|
2017-09-10 13:21:03 +02:00
|
|
|
tox -e "$TESTENV" -- "${args[@]}"
|
2016-03-15 19:23:49 +01:00
|
|
|
fi
|