aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSebastian Meyer <ich@sebmeyer.de>2018-02-01 22:49:50 +0100
committerKevin O'Connor <kevin@koconnor.net>2018-02-25 10:54:59 -0500
commita6b0649cb1f949512e5748d264c23bf5380d9714 (patch)
treefb273ec093fb818bff0b797a972548d76fdde4f1 /test
parent58dd6d910621928e2ba8abe481332a8603399bfc (diff)
downloadkutter-a6b0649cb1f949512e5748d264c23bf5380d9714.tar.gz
kutter-a6b0649cb1f949512e5748d264c23bf5380d9714.tar.xz
kutter-a6b0649cb1f949512e5748d264c23bf5380d9714.zip
test: Add travis CI
Signed-off-by: Sebastian Meyer <ich@sebmeyer.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'test')
-rw-r--r--test/configs/atmega2560-16mhz.config4
-rw-r--r--test/configs/atmega328-16mhz.config4
-rw-r--r--test/configs/beaglebone.config2
-rw-r--r--test/configs/hostsimulator.config2
-rw-r--r--test/configs/linuxprocess.config2
-rw-r--r--test/configs/sam3x8e.config2
-rwxr-xr-xtest/travis-build.sh35
7 files changed, 51 insertions, 0 deletions
diff --git a/test/configs/atmega2560-16mhz.config b/test/configs/atmega2560-16mhz.config
new file mode 100644
index 00000000..ec4d6cde
--- /dev/null
+++ b/test/configs/atmega2560-16mhz.config
@@ -0,0 +1,4 @@
+# Base config file for atmega2560
+CONFIG_MACH_AVR=y
+CONFIG_MACH_atmega2560=y
+CONFIG_CLOCK_FREQ=16000000
diff --git a/test/configs/atmega328-16mhz.config b/test/configs/atmega328-16mhz.config
new file mode 100644
index 00000000..b231660e
--- /dev/null
+++ b/test/configs/atmega328-16mhz.config
@@ -0,0 +1,4 @@
+# Base config file for atmega328
+CONFIG_MACH_AVR=y
+CONFIG_MACH_atmega328=y
+CONFIG_CLOCK_FREQ=16000000
diff --git a/test/configs/beaglebone.config b/test/configs/beaglebone.config
new file mode 100644
index 00000000..9e56034b
--- /dev/null
+++ b/test/configs/beaglebone.config
@@ -0,0 +1,2 @@
+# Base config file for beaglebone
+CONFIG_MACH_PRU=y
diff --git a/test/configs/hostsimulator.config b/test/configs/hostsimulator.config
new file mode 100644
index 00000000..49c2c4db
--- /dev/null
+++ b/test/configs/hostsimulator.config
@@ -0,0 +1,2 @@
+# Base config file for host simulator
+CONFIG_MACH_SIMU=y
diff --git a/test/configs/linuxprocess.config b/test/configs/linuxprocess.config
new file mode 100644
index 00000000..ec3a09ef
--- /dev/null
+++ b/test/configs/linuxprocess.config
@@ -0,0 +1,2 @@
+# Base config file for linux process
+CONFIG_MACH_LINUX=y
diff --git a/test/configs/sam3x8e.config b/test/configs/sam3x8e.config
new file mode 100644
index 00000000..a388f836
--- /dev/null
+++ b/test/configs/sam3x8e.config
@@ -0,0 +1,2 @@
+# Base config file for Atmel SAM3x8e ARM processor
+CONFIG_MACH_SAM3X8E=y
diff --git a/test/travis-build.sh b/test/travis-build.sh
new file mode 100755
index 00000000..58be7768
--- /dev/null
+++ b/test/travis-build.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+set -eux
+if [ -z ${TARGET+x} ]; then
+ if [ -z ${1+x} ]; then
+ echo "Need a TARGET as environment variable or first parameter!"
+ exit 1
+ else
+ TARGET="$1"
+ fi
+fi
+
+echo "Target is '$TARGET'"
+make clean
+make distclean
+unset CC
+cp test/configs/${TARGET}.config .config
+make olddefconfig
+
+if [ ! -z ${GCC_SRC+x} ]; then
+ if [ -z ${GCC_DIR+x} ]; then
+ echo "Need a GCC_DIR together with GCC_SRC!"
+ exit 1
+ fi
+ if [ -e "$GCC_DIR" ]; then
+ echo "Reusing GCC in '$GCC_DIR'"
+ else
+ echo "Getting GCC from '$GCC_SRC'"
+ wget "$GCC_SRC"
+ echo "Unpacking GCC to '$GCC_DIR'"
+ tar xf $(basename "$GCC_SRC")
+ fi
+ export PATH=$GCC_DIR/bin:$PATH
+fi
+
+make V=1