Skip to content

Commit

Permalink
xvf works on linux, adding some logic to get it on osx as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sosey committed Feb 6, 2018
1 parent 1d6e714 commit ee7ce3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ matrix:
before_install:
- uname -a
- python --version
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; sleep 3; echo ok )& fi

# We now use the ci-helpers package to set up our testing environment.
# This is done by using Miniconda and then using conda and pip to install
Expand Down Expand Up @@ -136,7 +137,8 @@ install:


script:
- xvfb-run -a $MAIN_CMD $SETUP_CMD
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ( xvfb-run -a $MAIN_CMD $SETUP_CMD ) fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ( $MAIN_CMD $SETUP_CMD ) fi


after_success:
Expand Down

0 comments on commit ee7ce3b

Please sign in to comment.