Move muxpack from passes/techmap to passes/opt
[yosys.git] / .travis / setup.sh
1 #! /bin/bash
2
3 set -e
4
5 source .travis/common.sh
6
7 ##########################################################################
8
9 # Output status information.
10 (
11 set +e
12 set -x
13 git status
14 git branch -v
15 git log -n 5 --graph
16 git log --format=oneline -n 20 --graph
17 )
18 echo
19 echo -en 'travis_fold:end:before_install.git\\r'
20 echo
21
22 ##########################################################################
23
24 # Mac OS X specific setup.
25 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
26 (
27 echo
28 echo 'Setting up brew...' && echo -en 'travis_fold:start:before_install.brew\\r'
29 echo
30 brew update
31 brew tap Homebrew/bundle
32 brew bundle
33 brew install ccache
34 echo
35 echo -en 'travis_fold:end:before_install.brew\\r'
36 echo
37 )
38 fi
39
40 ##########################################################################
41
42 # Install iverilog
43 (
44 if [ ! -e ~/.local-bin/bin/iverilog ]; then
45 echo
46 echo 'Building iverilog...' && echo -en 'travis_fold:start:before_install.iverilog\\r'
47 echo
48 mkdir -p ~/.local-src
49 mkdir -p ~/.local-bin
50 cd ~/.local-src
51 git clone git://github.com/steveicarus/iverilog.git
52 cd iverilog
53 autoconf
54 ./configure --prefix=$HOME/.local-bin
55 make
56 make install
57 echo
58 echo -en 'travis_fold:end:before_install.iverilog\\r'
59 echo
60 fi
61 )
62
63 ##########################################################################