aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/common.sh
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-11-24 06:49:15 +0100
committerGitHub <noreply@github.com>2017-11-24 06:49:15 +0100
commit203c2dae3cdd255956d5db23d28f241eeca21612 (patch)
tree0d3dd5b389d9ac774bb5ba2b0defe622c1df4c00 /.travis/common.sh
parent494a6f79492d871adae7af10d3d173454b3ecb21 (diff)
parentbc8d40aa88bd784bb19261530ddd29aeeafba815 (diff)
downloadyosys-203c2dae3cdd255956d5db23d28f241eeca21612.tar.gz
yosys-203c2dae3cdd255956d5db23d28f241eeca21612.tar.bz2
yosys-203c2dae3cdd255956d5db23d28f241eeca21612.zip
Merge pull request #446 from mithro/travis-rework
Reworking the Travis CI for Yosys.
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"