Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (39 sloc) 1.66 KB
language: c
before_install:
- sudo apt-get -qq update
# luajit
- sudo apt-get install luajit
# verilator
- sudo apt-get install verilator
- export PKG_CONFIG_PATH=/home/travis/build/jameshegarty/rigel/platform/verilator
#terra
- wget https://github.com/zdevito/terra/releases/download/release-2016-03-25/terra-Linux-x86_64-332a506.zip
- unzip terra-Linux-x86_64-332a506.zip
- sudo ln -s /home/travis/build/jameshegarty/rigel/terra-Linux-x86_64-332a506/bin/terra /usr/bin/terra
# this installs correct version of glibc for terra binary
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -y update
- sudo apt-get -y install libstdc++6-4.7-dev
#for coveralls
- if [[ $TARGET = "unit" ]] || [[ $TARGET = "coverage" ]]; then sudo apt-get install luarocks; fi
- if [[ $TARGET = "unit" ]] || [[ $TARGET = "coverage" ]]; then sudo luarocks install luacov-coveralls; fi
- if [[ $TARGET = "unit" ]] || [[ $TARGET = "coverage" ]]; then eval `luarocks path --bin`; fi
script:
# early out on errors
- set -e
- if [[ $TARGET = "unit" ]]; then export LUA="../rigelLuajit -lluacov"; fi
- if [[ $TARGET = "unit" ]]; then cd unittests; make; else cd examples; make -j2 $TARGET; fi
- if [[ $TARGET = "verilog" ]]; then make -j2 wrapper; fi
# check that make actually 100% completed, just to be really sure (?)
- pwd
- echo out/${TARGET}_done.txt
- if [[ $TARGET != "unit" ]]; then test -e out/${TARGET}_done.txt || exit; fi
- if [[ $TARGET = "unit" ]]; then luacov-coveralls -v; fi
env:
- TARGET=verilog
- TARGET=verilator
- TARGET=verilatorSOC
- TARGET=terra
- TARGET=unit
- TARGET=coverage
# - TARGET=axiverilog