Minor changes

This commit is contained in:
Giorgio Calderone 2017-08-29 02:06:45 +02:00
parent 16d88414a4
commit 8dac542bdb
2 changed files with 9 additions and 5 deletions

View File

@ -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:

View File

@ -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))