diff --git a/.travis.yml b/.travis.yml index 06afcd692952863d86152425e60cf0f22d4f0b49..9c01cb0a69500432d2d55fa97666972190f91daf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,7 @@ addons: - jq - shellcheck - xvfb + - dbus-x11 cache: directories: @@ -35,10 +36,6 @@ install: - if [ "$TRAVIS_OS_NAME" == 'linux' ]; then export DISPLAY=':99.0'; fi - if [ "$TRAVIS_OS_NAME" == 'linux' ]; then sh -e /etc/init.d/xvfb start; fi - # - if [ "$TRAVIS_OS_NAME" == 'linux' ]; then wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb; fi - # - if [ "$TRAVIS_OS_NAME" == 'linux' ]; then sudo dpkg -i google-chrome*.deb; fi - # - if [ "$TRAVIS_OS_NAME" == 'linux' ]; then sudo apt-get install jq; fi - - npm install phantomjs-prebuilt - npm --progress false --loglevel warn install @@ -51,7 +48,6 @@ script: - shellcheck bin/*.sh - npm run lint - npm run dist - # - if [ "$TRAVIS_OS_NAME" == 'linux' ]; then WECHATY_LOG=silly npm run test:phantomjs; fi # https://github.com/SeleniumHQ/docker-selenium/issues/87#issuecomment-187580115 - if [ "$TRAVIS_OS_NAME" == 'linux' ]; then DBUS_SESSION_BUS_ADDRESS=/dev/null WECHATY_LOG=silly npm run test:chrome; fi - if [ "$TRAVIS_OS_NAME" == 'osx' ]; then WECHATY_LOG=verbose npm run nycava; fi