Merge pull request #421 from stephengroat/osx-travis

Add osx tests using brew bundle
This commit is contained in:
Clifford Wolf 2017-09-28 14:45:47 +02:00 committed by GitHub
commit 29f8acf095
3 changed files with 12 additions and 2 deletions

View File

@ -24,6 +24,7 @@ addons:
- g++-4.8 - g++-4.8
before_install: before_install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap Homebrew/bundle && brew bundle; fi
- git clone git://github.com/steveicarus/iverilog.git - git clone git://github.com/steveicarus/iverilog.git
- (cd iverilog && autoconf && ./configure --prefix=$HOME/iverilog && make && make install) - (cd iverilog && autoconf && ./configure --prefix=$HOME/iverilog && make && make install)
- export PATH=$PATH:$HOME/iverilog/bin - export PATH=$PATH:$HOME/iverilog/bin
@ -32,3 +33,4 @@ compiler:
- gcc - gcc
os: os:
- linux - linux
- osx

9
Brewfile Normal file
View File

@ -0,0 +1,9 @@
brew "bison"
brew "flex"
brew "gawk"
brew "libffi"
brew "git"
brew "mercurial"
brew "graphviz"
brew "pkg-config"
brew "python3"

View File

@ -57,8 +57,7 @@ prerequisites for building yosys:
Similarily, on Mac OS X MacPorts or Homebrew can be used to install dependencies: Similarily, on Mac OS X MacPorts or Homebrew can be used to install dependencies:
$ brew install bison flex gawk libffi \ $ brew tap Homebrew/bundle && brew bundle
git mercurial graphviz pkg-config python3
$ sudo port install bison flex readline gawk libffi \ $ sudo port install bison flex readline gawk libffi \
git mercurial graphviz pkgconfig python36 git mercurial graphviz pkgconfig python36