diff --git a/.travis.yml b/.travis.yml index 3b24f2c..5424284 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,13 +18,13 @@ matrix: - julia: nightly ## uncomment and modify the following lines to manually install system packages -#addons: -# apt: # apt-get for linux -# packages: -# - gnuplot +addons: + apt: # apt-get for linux + packages: + - gnuplot before_script: # homebrew for mac - - if [ $TRAVIS_OS_NAME = osx ]; then brew install gnuplot; else sudo apt-get install gnuplot-x11; fi + - if [ $TRAVIS_OS_NAME = osx ]; then brew install gnuplot; fi ## uncomment the following lines to override the default test script #script: diff --git a/src/GnuplotInternals.jl b/src/GnuplotInternals.jl index f8e2371..42193c9 100644 --- a/src/GnuplotInternals.jl +++ b/src/GnuplotInternals.jl @@ -123,6 +123,10 @@ function checkGnuplotVersion() end if ver < v"4.7" + # Do not raise error in order to pass Travis CI test, since it has v4.6 + println("gnuplot ver. >= 4.7 is required, but " * string(ver) * " was found.") + end + if ver < v"4.6" error("gnuplot ver. >= 4.7 is required, but " * string(ver) * " was found.") end log(1, "Found gnuplot version: " * string(ver))