2017-10-25 22:01:54 -05:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
source .travis/common.sh
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo 'Configuring...' && echo -en 'travis_fold:start:script.configure\\r'
|
|
|
|
echo
|
|
|
|
|
|
|
|
if [ "$CONFIG" = "gcc" ]; then
|
|
|
|
echo "Configuring for gcc."
|
|
|
|
make config-gcc
|
|
|
|
elif [ "$CONFIG" = "clang" ]; then
|
|
|
|
echo "Configuring for clang."
|
|
|
|
make config-clang
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo -en 'travis_fold:end:script.configure\\r'
|
|
|
|
echo
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo 'Building...' && echo -en 'travis_fold:start:script.build\\r'
|
|
|
|
echo
|
|
|
|
|
2019-08-09 01:54:17 -05:00
|
|
|
make CC=$CC CXX=$CC LD=$CC
|
2017-10-25 22:01:54 -05:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo -en 'travis_fold:end:script.build\\r'
|
|
|
|
echo
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
2019-02-21 16:13:14 -06:00
|
|
|
./yosys tests/simple/fiedler-cooley.v
|
|
|
|
|
2017-10-25 22:01:54 -05:00
|
|
|
echo
|
|
|
|
echo 'Testing...' && echo -en 'travis_fold:start:script.test\\r'
|
|
|
|
echo
|
|
|
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo -en 'travis_fold:end:script.test\\r'
|
|
|
|
echo
|
|
|
|
|
|
|
|
##########################################################################
|