From 48c751bcb21193257ecbe53b105b79ebcd4e6fe8 Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Thu, 18 Apr 2019 01:15:33 +0530 Subject: [PATCH 1/6] Update .travis.yml --- .travis.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 98d0198..a31cc52 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1 +1,26 @@ -script: make && make install \ No newline at end of file +compiler: + - gcc + +# the install step will take care of deploying a newer cmake version +install: + # first we create a directory for the CMake binaries + - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps" + - mkdir ${DEPS_DIR} && cd ${DEPS_DIR} + # we use wget to fetch the cmake binaries + - travis_retry wget --no-check-certificate https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz + # this is optional, but useful: + # do a quick md5 check to ensure that the archive we downloaded did not get compromised + - echo "f3546812c11ce7f5d64dc132a566b749 *cmake-3.3.2-Linux-x86_64.tar.gz" > cmake_md5.txt + - md5sum -c cmake_md5.txt + # extract the binaries; the output here is quite lengthy, + # so we swallow it to not clutter up the travis console + - tar -xvf cmake-3.3.2-Linux-x86_64.tar.gz > /dev/null + - mv cmake-3.3.2-Linux-x86_64 cmake-install + # add both the top-level directory and the bin directory from the archive + # to the system PATH. By adding it to the front of the path we hide the + # preinstalled CMake with our own. + - PATH=${DEPS_DIR}/cmake-install:${DEPS_DIR}/cmake-install/bin:$PATH + # don't forget to switch back to the main build directory once you are done + - cd ${TRAVIS_BUILD_DIR} + +script: make && sudo make install From ff2f2aa74952b9542b0ef7e1a88e3c8ed23f5d80 Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Thu, 18 Apr 2019 01:23:51 +0530 Subject: [PATCH 2/6] Update cmake --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index a31cc52..42608dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,15 +7,15 @@ install: - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps" - mkdir ${DEPS_DIR} && cd ${DEPS_DIR} # we use wget to fetch the cmake binaries - - travis_retry wget --no-check-certificate https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz + - travis_retry wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.14.2/cmake-3.14.2.tar.gz # this is optional, but useful: - # do a quick md5 check to ensure that the archive we downloaded did not get compromised - - echo "f3546812c11ce7f5d64dc132a566b749 *cmake-3.3.2-Linux-x86_64.tar.gz" > cmake_md5.txt - - md5sum -c cmake_md5.txt - # extract the binaries; the output here is quite lengthy, - # so we swallow it to not clutter up the travis console - - tar -xvf cmake-3.3.2-Linux-x86_64.tar.gz > /dev/null - - mv cmake-3.3.2-Linux-x86_64 cmake-install +# do a quick md5 check to ensure that the archive we downloaded did not get compromised +# - echo "f3546812c11ce7f5d64dc132a566b749 *cmake-3.3.2-Linux-x86_64.tar.gz" > cmake_md5.txt +# - md5sum -c cmake_md5.txt +# extract the binaries; the output here is quite lengthy, +# so we swallow it to not clutter up the travis console + - tar -xvf cmake-3.14.2.tar.gz > /dev/null + - mv cmake-3.14.2 cmake-install # add both the top-level directory and the bin directory from the archive # to the system PATH. By adding it to the front of the path we hide the # preinstalled CMake with our own. From 8ec0d88dd06e16c0b176591da20509990dfc5277 Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Thu, 18 Apr 2019 01:32:33 +0530 Subject: [PATCH 3/6] Update .travis.yml --- .travis.yml | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/.travis.yml b/.travis.yml index 42608dd..03b24ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,26 +1,9 @@ -compiler: - - gcc - -# the install step will take care of deploying a newer cmake version -install: - # first we create a directory for the CMake binaries - - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps" - - mkdir ${DEPS_DIR} && cd ${DEPS_DIR} - # we use wget to fetch the cmake binaries - - travis_retry wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.14.2/cmake-3.14.2.tar.gz - # this is optional, but useful: -# do a quick md5 check to ensure that the archive we downloaded did not get compromised -# - echo "f3546812c11ce7f5d64dc132a566b749 *cmake-3.3.2-Linux-x86_64.tar.gz" > cmake_md5.txt -# - md5sum -c cmake_md5.txt -# extract the binaries; the output here is quite lengthy, -# so we swallow it to not clutter up the travis console - - tar -xvf cmake-3.14.2.tar.gz > /dev/null - - mv cmake-3.14.2 cmake-install - # add both the top-level directory and the bin directory from the archive - # to the system PATH. By adding it to the front of the path we hide the - # preinstalled CMake with our own. - - PATH=${DEPS_DIR}/cmake-install:${DEPS_DIR}/cmake-install/bin:$PATH - # don't forget to switch back to the main build directory once you are done - - cd ${TRAVIS_BUILD_DIR} - +addons: + apt: + sources: + - george-edison55-precise-backports + packages: + - cmake-data + - cmake + script: make && sudo make install From b681d7f280caf10a777eb0d26a7caa981ecfeb7b Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Thu, 18 Apr 2019 01:42:53 +0530 Subject: [PATCH 4/6] Update .travis.yml --- .travis.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 03b24ea..4dd474a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ -addons: - apt: - sources: - - george-edison55-precise-backports - packages: - - cmake-data - - cmake + +before_install: + - mkdir $HOME/usr + - export PATH="$HOME/usr/bin:$PATH" + - wget https://github.com/Kitware/CMake/releases/download/v3.14.2/cmake-3.14.2-Linux-x86_64.sh + - chmod +x cmake-3.14.2-Linux-x86_64.sh + - ./cmake-3.14.2-Linux-x86_64.sh --prefix=$HOME/usr --exclude-subdir --skip-license script: make && sudo make install From 064d84ebfc1a1472c5d3b4d4e0228a4b7882a8de Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Thu, 18 Apr 2019 01:46:20 +0530 Subject: [PATCH 5/6] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4dd474a..2d6bec7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,6 @@ before_install: - wget https://github.com/Kitware/CMake/releases/download/v3.14.2/cmake-3.14.2-Linux-x86_64.sh - chmod +x cmake-3.14.2-Linux-x86_64.sh - ./cmake-3.14.2-Linux-x86_64.sh --prefix=$HOME/usr --exclude-subdir --skip-license + - sudo apt-get install build-essential libgtk-3-dev script: make && sudo make install From 9ac83f99f7f767e4457f5b9a42a6924ccb09fb88 Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Thu, 18 Apr 2019 01:46:50 +0530 Subject: [PATCH 6/6] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2d6bec7..919bfb6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,6 @@ before_install: - wget https://github.com/Kitware/CMake/releases/download/v3.14.2/cmake-3.14.2-Linux-x86_64.sh - chmod +x cmake-3.14.2-Linux-x86_64.sh - ./cmake-3.14.2-Linux-x86_64.sh --prefix=$HOME/usr --exclude-subdir --skip-license - - sudo apt-get install build-essential libgtk-3-dev + - sudo apt-get install -y build-essential libgtk-3-dev script: make && sudo make install