diff --git a/.travis.yml b/.travis.yml index 65bde64f3..623c42bf9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,9 @@ language: cpp cache: - - apt + - apt + directories: + - cmake-3.2.3-Linux-x86_64 branches: except: @@ -11,8 +13,8 @@ before_install: # we need a recent version of CMake # - sudo add-apt-repository -y ppa:andykimpe/cmake3 # linux prereqisite packages - - if [ "$TRAVIS_OS_NAME" == "linux" ]; then wget --no-check-certificate https://www.cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz; fi - - if [ "$TRAVIS_OS_NAME" == "linux" ]; then tar -xzvf cmake-3.2.3-Linux-x86_64.tar.gz; fi + - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ ! -d cmake-3.2.3-Linux-x86_64 ]; then wget --no-check-certificate https://www.cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz; fi + - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ ! -d cmake-3.2.3-Linux-x86_64 ]; then tar -xzvf cmake-3.2.3-Linux-x86_64.tar.gz; fi - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export PATH=$PWD/cmake-3.2.3-Linux-x86_64/bin:$PATH; fi - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq -y unixodbc-dev libmysqlclient-dev libsqlite3-dev; fi @@ -43,12 +45,12 @@ env: before_script: - echo ${TEST_NAME} - - sqlite3 -version - chmod 755 ./travis/Linux/runtests.sh - chmod 755 ./travis/OSX/runtests.sh - if [ "$TRAVIS_OS_NAME" == "linux" ]; then mysql -u root -e 'create database pocotestdb;'; fi - if [ "$TRAVIS_OS_NAME" == "linux" ]; then mysql --version; fi - if [ "$TRAVIS_OS_NAME" == "linux" ]; then postgres --version; fi + - sqlite3 -version matrix: fast_finish: true