aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/common.sh
diff options
context:
space:
mode:
authorTim 'mithro' Ansell <mithro@mithis.com>2017-10-25 20:01:54 -0700
committerTim 'mithro' Ansell <mithro@mithis.com>2017-11-24 15:45:45 +1100
commitd2850b5b809759bafa7aead995d069acc023af15 (patch)
treeb5a83698337ff5f4934c3e1e70d536d3b52243f6 /.travis/common.sh
parentf513494f5fabd2596b1748cf67dcaf70723b28f7 (diff)
downloadyosys-d2850b5b809759bafa7aead995d069acc023af15.tar.gz
yosys-d2850b5b809759bafa7aead995d069acc023af15.tar.bz2
yosys-d2850b5b809759bafa7aead995d069acc023af15.zip
travis: Reworking travis setup.
* Move the code into scripts inside .travis directory. * Build on multiple compiler versions. Fixes #442 - Make travis build pass Fixes #441 - Fix git version information on travis build Fixes #440 - Make travis cache the iverilog build
Diffstat (limited to '.travis/common.sh')
-rw-r--r--.travis/common.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/.travis/common.sh b/.travis/common.sh
new file mode 100644
index 000000000..8eecc4c09
--- /dev/null
+++ b/.travis/common.sh
@@ -0,0 +1,15 @@
+#! /bin/bash
+
+# Setup the CC / CXX from the matrix config
+eval "${MATRIX_EVAL}"
+
+# Look for location binaries first
+export PATH="$HOME/.local-bin/bin:$PATH"
+
+# OS X specific common setup
+if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ export PATH="/usr/local/opt/ccache/libexec:$PATH"
+fi
+
+# Parallel builds!
+MAKEFLAGS="-j 2"