give up iverilog on travis

This commit is contained in:
tangxifan 2019-11-01 17:53:50 -06:00
parent 1d78725d4d
commit 4d4ef1113d
2 changed files with 44 additions and 31 deletions

View File

@ -87,6 +87,19 @@ before_install:
- source .travis/common.sh
install:
- DEPS_DIR="${HOME}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
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
- cd -
- source .travis/install.sh
script:

View File

@ -3,37 +3,37 @@
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 -p 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"
travis_retry wget --no-clobber --no-check-certificate --quiet -O - ${IVERILOG_URL}
mkdir -p iverilog-10_3
tar -xz v10_3.tar.gz
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 -V
cd -
## 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 -p 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"
# travis_retry wget --no-clobber --no-check-certificate --quiet -O - ${IVERILOG_URL}
# mkdir -p iverilog-10_3
# tar -xz v10_3.tar.gz
# 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 -V
#cd -
# Git repo fixup