-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mike Frysinger <vapier@gmail.com>
- Loading branch information
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Travis build integration. | ||
# https://docs.travis-ci.com/ | ||
|
||
language: c | ||
# Order here matters for implicit matrix generation and coverity scan. | ||
# See travis/main.sh for details. | ||
compiler: | ||
- gcc | ||
- clang | ||
|
||
sudo: false | ||
|
||
# Order here matters; see compiler comment above. | ||
os: | ||
- linux | ||
# - osx | ||
|
||
script: ./travis/main.sh | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- autoconf | ||
- automake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
# Common funcs for working w/Travis. | ||
|
||
travis_fold() { | ||
if [[ -n ${TRAVIS_OS_NAME} ]] ; then | ||
printf 'travis_fold:%s:%s\r\n' "$@" | sed 's: :_:g' | ||
fi | ||
} | ||
|
||
if [[ -n ${TRAVIS_OS_NAME} ]] ; then | ||
whitebg=$(tput setab 7) | ||
blackfg=$(tput setaf 0) | ||
normal=$(tput sgr0) | ||
else | ||
whitebg= | ||
blackbg= | ||
normal= | ||
fi | ||
v() { | ||
local fold="" | ||
case $1 in | ||
--fold=*) fold=${1:7}; shift;; | ||
esac | ||
if [[ -n ${fold} ]] ; then | ||
travis_fold start "${fold}" | ||
echo "\$ $*" | ||
"$@" | ||
travis_fold end "${fold}" | ||
else | ||
echo "${whitebg}${blackfg}\$ $*${normal}" | ||
"$@" | ||
fi | ||
} | ||
|
||
ncpus=$(getconf _NPROCESSORS_ONLN) | ||
m() { | ||
v make -j${ncpus} "$@" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash -e | ||
# The main script for building/testing while under travis ci. | ||
# https://travis-ci.org/libgd/libgd | ||
|
||
. "${0%/*}"/lib.sh | ||
|
||
main() { | ||
m distcheck | ||
} | ||
main "$@" |