Skip to content

Commit

Permalink
Added an ARM cross-compile build to Travis.
Browse files Browse the repository at this point in the history
TESTING
  • Loading branch information
dfandrich committed Nov 30, 2018
1 parent c3e9d39 commit 1f372be
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 33 deletions.
27 changes: 0 additions & 27 deletions .appveyor.yml

This file was deleted.

26 changes: 20 additions & 6 deletions .travis.yml
Expand Up @@ -17,18 +17,18 @@ env:
# More configurations are configured in the matrix section
matrix:
- CONFIG=normal
- CONFIG=c90
- CONFIG=stackprotect
# - CONFIG=c90
# - CONFIG=stackprotect
global:
- MAKEFLAGS='-j 2'

compiler:
- clang
# - clang
- gcc

os:
- linux
- osx
# - osx

matrix:
include:
Expand All @@ -55,6 +55,16 @@ matrix:
compiler: gcc
env:
- CONFIG=gcc8
- os: linux
addons:
apt:
packages:
- autopoint
- gcc-4.8-arm-linux-gnueabihf
- libc6-dev-armhf-cross
compiler: gcc
env:
- CONFIG=arm-cross
- os: linux
addons:
apt:
Expand Down Expand Up @@ -118,13 +128,17 @@ script:
- if [ "$CONFIG" = "c90" ] ; then CFLAGS='-std=iso9899:1990 -D_XOPEN_SOURCE=500 -Wall -Wextra -O3'; fi
- if [ "$CONFIG" = "stackprotect" ] ; then CFLAGS='-g -O0 -fstack-protector-all'; fi
- if [ "$CONFIG" = "clang6" ] ; then CFLAGS='-Wall -Wextra -O3'; export CC=clang-6.0; fi
- if [ "$CONFIG" = "gcc8" ] ; then CFLAGS='-Wall -Wextra -O3'; export export CC=gcc-8; fi
- if [ "$CONFIG" = "gcc8" ] ; then CFLAGS='-Wall -Wextra -O3'; export CC=gcc-8; fi
- if [ "$CONFIG" = "arm-cross" ] ; then CFLAGS='-Wall -Wextra -O3'; export CC=arm-linux-gnueabihf-gcc-4.8; CONFIGURE_OPTS='--host=arm-linux-gnueabihf'; fi
- if [ "$CONFIG" = "sanitize" ] ; then CFLAGS='-g -Wall -Wextra -fsanitize=address -fsanitize=undefined'; export CC=clang-6.0; fi
- if [ "$CONFIG" = "coverage" ] ; then cd "$HOME"/libexif-testsuite; CFLAGS=--coverage; CONFIGURE_OPTS="LDFLAGS=--coverage --with-failmalloc=$HOME/failmalloc/lib" ; fi
- ./configure --prefix="${HOME}"/install CFLAGS="$CFLAGS" $CONFIGURE_OPTS || { tail -300 config.log; false; }

- make V=1
- make V=1 check || { tail -300 test*/test-suite.log; false; }
# Skip tests when cross compiling.
- if [ "$CONFIG" != "arm-cross" ] ; then make V=1 check || { tail -300 test*/test-suite.log; false; }; fi
- make V=1 install

- if [ "$CONFIG" = "coverage" ] ; then cd "$TRAVIS_BUILD_DIR"; fi

after_success:
Expand Down

0 comments on commit 1f372be

Please sign in to comment.