From 8c0d60abd600f3533642c0c908718956c9ff62d3 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 1 Nov 2019 15:00:33 -0600 Subject: [PATCH] debugging travis --- .travis/common.sh | 34 ---------------------------------- .travis/install.sh | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 34 deletions(-) diff --git a/.travis/common.sh b/.travis/common.sh index 11414c948..a293cb00f 100644 --- a/.travis/common.sh +++ b/.travis/common.sh @@ -43,38 +43,4 @@ else export CXX=g++-8 fi -# Install necessary package which is not available on Travis CI -export DEPS_DIR="${HOME}/deps" -mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR} - -# Install CMake -if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then - export CMAKE_URL="https://cmake.org/files/v3.13/cmake-3.13.0-rc3-Linux-x86_64.tar.gz" - mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake - export PATH=${DEPS_DIR}/cmake/bin:${PATH} - echo ${PATH} -else - brew install cmake || brew upgrade cmake -fi - -cmake --version - -# Install latest iVerilog. Since no deb is provided, compile from source codes -if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then - export IVERILOG_URL="https://github.com/steveicarus/iverilog/archive/v10_3.tar.gz" - mkdir iverilog-10.3 && travis_retry wget --no-check-certificate --quiet -O - ${IVERILOG_URL} | tar --strip-components=1 -xz -C iverilog-10.3 - cd iverlog-10.3 - sh autoconf.sh --prefix=${DEPS_DIR}/iverilog-10.3/bin - ./configure --prefix=${DEPS_DIR}/iverilog-10.3/bin - make -j4 - make check - make install --prefix=${HOME}/iverilog-10.3/bin - export PATH=${DEPS_DIR}/iverilog-10.3/bin:${PATH} - echo ${PATH} -fi - -iverilog --version - -# Go back to home directory -cd - diff --git a/.travis/install.sh b/.travis/install.sh index 16f848403..fd9e353f9 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -3,6 +3,42 @@ source .travis/common.sh set -e +# Install necessary package which is not available on Travis CI +export DEPS_DIR="${HOME}/deps" +mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR} + +# Install CMake +if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then + export CMAKE_URL="https://cmake.org/files/v3.13/cmake-3.13.0-rc3-Linux-x86_64.tar.gz" + mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake + export PATH=${DEPS_DIR}/cmake/bin:${PATH} + echo ${PATH} +else + brew install cmake || brew upgrade cmake +fi + +cmake --version + +# Install latest iVerilog. Since no deb is provided, compile from source codes +if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then + export IVERILOG_URL="https://github.com/steveicarus/iverilog/archive/v10_3.tar.gz" + mkdir iverilog-10.3 && travis_retry wget --no-check-certificate --quiet -O - ${IVERILOG_URL} | tar --strip-components=1 -xz -C iverilog-10.3 + cd iverlog-10.3 + sh autoconf.sh --prefix=${DEPS_DIR}/iverilog-10.3/bin + ./configure --prefix=${DEPS_DIR}/iverilog-10.3/bin + make -j4 + make check + make install --prefix=${HOME}/iverilog-10.3/bin + export PATH=${DEPS_DIR}/iverilog-10.3/bin:${PATH} + echo ${PATH} +fi + +iverilog --version + +# Go back to home directory +cd - + + # Git repo fixup #start_section "environment.git" "Setting up ${YELLOW}git checkout${NC}" #set -x