Commit 8b8d62c6 by Zachary Snow

add an additional (fixed) linux build to Travis CI

parent 5bc58ea6
os: osx
language: generic language: generic
matrix:
include:
- os: linux
dist: xenial
- os: osx
osx_image: xcode10.1
cache: cache:
directories: directories:
- $HOME/.stack - $HOME/.stack
- $HOME/iverilog
addons: addons:
apt:
packages:
- shunit2
# for stack
- libgmp-dev
# for iverilog
- flex
- bison
homebrew: homebrew:
packages: packages:
- haskell-stack - haskell-stack
- shunit2 - shunit2
- icarus-verilog - icarus-verilog
before_install:
- |
set -ex
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
# install the latest version of stack
# based on: https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/travis-simple.yml
mkdir -p ~/.local/bin
export PATH=$HOME/.local/bin:$PATH
travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# install iverilog 10.2
if [ ! -e "iverilog/verilog-10.2" ]; then
mkdir -p iverilog
cd iverilog
travis_retry curl -L ftp://icarus.com/pub/eda/verilog/v10/verilog-10.2.tar.gz > verilog-10.2.tar.gz
tar -xzf verilog-10.2.tar.gz
cd verilog-10.2
./configure
make
cd ../..
fi
(cd iverilog/verilog-10.2 && sudo make install)
fi
set +ex
install: install:
make make
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment