aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-03-09 15:14:34 +0100
committerKarel Kočí <cynerd@email.cz>2016-03-09 15:24:34 +0100
commit46fdca089bf60a776c58d4f6c1f9e65bb520de92 (patch)
tree77bbdf4fc0107aebfd6a8957a1d4639873c0d908
parentbee96673c5853b254a75d91934d92395e4d3aa5c (diff)
downloadavr-ioe-46fdca089bf60a776c58d4f6c1f9e65bb520de92.tar.gz
avr-ioe-46fdca089bf60a776c58d4f6c1f9e65bb520de92.tar.bz2
avr-ioe-46fdca089bf60a776c58d4f6c1f9e65bb520de92.zip
Add travis support
-rw-r--r--.gitignore1
-rw-r--r--.travis.yml8
-rw-r--r--Makefile9
-rw-r--r--README.md1
4 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index a7c9ab6..fbf84a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
.*
!/.gitignore
!/.gitmodules
+!/.travis.yml
*.o
*.d
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..bb397ba
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,8 @@
+script:
+ - "make allyesconfig && make"
+
+addons:
+ apt:
+ packages:
+ - gcc-avr
+ - avr-libc
diff --git a/Makefile b/Makefile
index b1291af..03cc786 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,15 @@ menuconfig:
@[ ! -f config ] || sed 's/="\(.*\)"/=\1/' config > "$(CONFIG)"
@[ ! -f config ] || mv config "$(CONFIG).orig"
@[ ! -f config.old ] || mv config.old "$(CONFIG).old"
+
+.PHONY: allyesconfig
+allyesconfig:
+ @[ ! -f "$(CONFIG)" ] || [ ! -f "$(CONFIG).orig" ] || mv "$(CONFIG).orig" config
+ @$(MAKE) -f kconfig/GNUmakefile --no-print-directory \
+ TOPDIR=. SRCDIR=kconfig allyesconfig
+ @[ ! -f config ] || sed 's/="\(.*\)"/=\1/' config > "$(CONFIG)"
+ @[ ! -f config ] || mv config "$(CONFIG).orig"
+ @[ ! -f config.old ] || mv config.old "$(CONFIG).old"
# Note about this file moving madness:
# avr-ioe is using Kconfig for configuration and it is not prepared too well for
# nested projects (at least I don't know way). This unfortunately means that to
diff --git a/README.md b/README.md
index 2682fb9..fd3eed6 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
#AVR-IOE
+[![Build Status](https://travis-ci.com/Cynerd/avr-ioe.svg?token=j1mJhmD5jiZyJQGyPUkt&branch=master)](https://travis-ci.com/Cynerd/avr-ioe)
##AVR input/output expansion
This is library that implements different input/output interfaces and other