Add Travis CI integration.
This commit is contained in:
parent
0820c160d7
commit
c3154ae042
4 changed files with 35 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -19,4 +19,6 @@ stamp-*
|
||||||
*-stamp
|
*-stamp
|
||||||
doc/toilet.1
|
doc/toilet.1
|
||||||
src/toilet
|
src/toilet
|
||||||
|
test/*.log
|
||||||
|
test/*.trs
|
||||||
tools/caca2tlf
|
tools/caca2tlf
|
||||||
|
|
24
.travis.yml
Normal file
24
.travis.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
sudo: false
|
||||||
|
language: c
|
||||||
|
env: VERBOSE=1
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- build-essential
|
||||||
|
- pkg-config
|
||||||
|
- libcaca-dev
|
||||||
|
- zlib1g-dev
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- .travis/before_install.sh
|
||||||
|
- ./bootstrap
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
|
compiler:
|
||||||
|
- gcc
|
||||||
|
- clang
|
||||||
|
|
6
.travis/before_install.sh
Executable file
6
.travis/before_install.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if brew --version 2>/dev/null 2>&1; then
|
||||||
|
brew install libcaca
|
||||||
|
fi
|
||||||
|
|
|
@ -35,6 +35,9 @@ update-changelog: FORCE
|
||||||
&& test -d .git \
|
&& test -d .git \
|
||||||
&& git log --stat | awk 'function flush() { if (m != "") { print "Commit: " v "\nAuthor: " a m } m=""; v="UNSUBMITTED" } { if ($$1 == "commit") flush(); else if ($$1 == "Author:") { a = $$2 } else if ($$1 == "git-svn-id:") { split($$2,tmp,"@"); v=tmp[2] } else if ($$_ != " ") { m=m "\n" $$_ } } END { flush() }' > ChangeLog
|
&& git log --stat | awk 'function flush() { if (m != "") { print "Commit: " v "\nAuthor: " a m } m=""; v="UNSUBMITTED" } { if ($$1 == "commit") flush(); else if ($$1 == "Author:") { a = $$2 } else if ($$1 == "git-svn-id:") { split($$2,tmp,"@"); v=tmp[2] } else if ($$_ != " ") { m=m "\n" $$_ } } END { flush() }' > ChangeLog
|
||||||
|
|
||||||
|
# Travis CI uses “make test” instead of “make check”
|
||||||
|
test: check
|
||||||
|
|
||||||
echo-dirs: ; echo src tools
|
echo-dirs: ; echo src tools
|
||||||
|
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
Loading…
Reference in a new issue