update travis: try to compile iverilog through source

This commit is contained in:
tangxifan 2019-11-01 14:52:42 -06:00
parent b53a9b13bf
commit c2cef205a4
1 changed files with 10 additions and 4 deletions

View File

@ -49,7 +49,7 @@ mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
# Install CMake
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="https://cmake.org/files/v3.13/cmake-3.13.0-rc3-Linux-x86_64.tar.gz"
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}
@ -59,10 +59,16 @@ fi
cmake --version
# Install latest iVerilog
# Install latest iVerilog. Since no deb is provided, compile from source codes
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
IVERILOG_URL="ftp://icarus.com/pub/eda/verilog/v10//verilog-10.3.tar.gz"
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
@ -70,5 +76,5 @@ fi
iverilog --version
# Go back to home directory
cd ${HOME}
cd -