Skip to content

Commit

Permalink
Add cross compilers to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed May 17, 2016
1 parent 6a79d69 commit 7797a5e
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 12 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,20 @@ before_install:
- docker pull rocproject/ci-debian
- docker pull rocproject/ci-ubuntu:14.04
- docker pull rocproject/ci-ubuntu:16.04
- docker pull rocproject/ci-ubuntu:nodep
- docker pull rocproject/ci-centos:5
- docker pull rocproject/ci-centos:7
- docker pull rocproject/ci-empty
- docker pull rocproject/cross-raspberry
- docker pull rocproject/cross-linaro

script:
- scripts/travis/docker.sh rocproject/ci-fedora scripts/travis/fedora.sh
- scripts/travis/docker.sh rocproject/ci-debian scripts/travis/debian.sh
- scripts/travis/docker.sh rocproject/ci-ubuntu:14.04 scripts/travis/ubuntu-14.04.sh
- scripts/travis/docker.sh rocproject/ci-ubuntu:16.04 scripts/travis/ubuntu-16.04.sh
- scripts/travis/docker.sh rocproject/ci-ubuntu:nodep scripts/travis/ubuntu-nodep.sh
- scripts/travis/docker.sh rocproject/ci-centos:5 scripts/travis/centos-5.sh
- scripts/travis/docker.sh rocproject/ci-centos:7 scripts/travis/centos-7.sh
- scripts/travis/docker.sh rocproject/ci-empty scripts/travis/empty.sh
- scripts/travis/docker.sh rocproject/cross-raspberry scripts/travis/raspberry.sh
- scripts/travis/docker.sh rocproject/cross-linaro scripts/travis/linaro.sh
- cat build.status
21 changes: 12 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,15 @@ CI
Configured builds:
Image | Platforms | Compilers
--------------- | ----------- | ---------
`fedora:latest` | x86_64 | *default*
`debian:stable` | x86_64 | *default*
`ubuntu:14.04` | x86_64 | gcc-4.4, gcc-4.6, clang-3.4
`ubuntu:16.06` | x86_64 | gcc-4.8, gcc-4.9, gcc-5.x, clang-3.6, clang-3.7
`ubuntu:nodep` | x86_64 | *default*
`centos:5` | x86_64 | gcc-4.1
`centos:7` | x86_64 | *default*
Image | Based on | Platforms | Compilers
---------------------------- | --------------- | ----------- | ---------
`rocproject/ci-fedora` | `fedora:latest` | x86_64 | *default*
`rocproject/ci-debian` | `debian:stable` | x86_64 | *default*
`rocproject/ci-ubuntu:14.04` | `ubuntu:14.04` | x86_64 | gcc-4.4, gcc-4.6, clang-3.4
`rocproject/ci-ubuntu:16.04` | `ubuntu:16.06` | x86_64 | gcc-4.8, gcc-4.9, gcc-5.x, clang-3.6, clang-3.7
`rocproject/ci-ubuntu:nodep` | `ubuntu:16.04` | x86_64 | *default*
`rocproject/ci-centos:5` | `centos:5` | x86_64 | gcc-4.1
`rocproject/ci-centos:7` | `centos:7` | x86_64 | *default*
`rocproject/ci-empty` | `ubuntu:16.04` | x86_64 | *default*
`rocproject/cross-raspberry` | `debian:stable` | armv6 | arm-bcm2708hardfp-linux-gnueabi-gcc-4.7
`rocproject/cross-linaro` | `debian:stable` | armv7 | arm-linux-gnueabihf-gcc-4.9
1 change: 1 addition & 0 deletions scripts/travis/debian.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#! /bin/bash
set -xe
scons -Q clean
scons -Q --enable-werror --with-3rdparty=uv,cpputest --with-openfec=no test
scons -Q --enable-werror --with-3rdparty=uv,openfec,cpputest variant=debug test
scons -Q --enable-werror --with-3rdparty=uv,openfec,cpputest variant=release test
1 change: 0 additions & 1 deletion scripts/travis/ubuntu-nodep.sh → scripts/travis/empty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
set -xe
scons -Q clean
scons -Q --enable-werror --with-3rdparty=all test
scons -Q --enable-werror --with-3rdparty=all --with-openfec=no test
15 changes: 15 additions & 0 deletions scripts/travis/linaro.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /bin/bash
set -xe
scons -Q clean
for v in debug release
do
PATH="/opt/linaro/bin:${PATH}" \
scons -Q --enable-werror --with-3rdparty=uv,openfec,sox,cpputest \
host=arm-linux-gnueabihf variant=$v

for t in bin/arm-linux-gnueabihf/roc-test-*
do
LD_LIBRARY_PATH="/opt/linaro/arm-linux-gnueabihf/libc/lib" \
qemu-arm -L "${LD_LIBRARY_PATH}" -cpu cortex-a15 $t # armv7
done
done
15 changes: 15 additions & 0 deletions scripts/travis/raspberry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /bin/bash
set -xe
scons -Q clean
for v in debug release
do
PATH="/opt/raspberry/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin:${PATH}" \
scons -Q --enable-werror --with-3rdparty=uv,openfec,sox,cpputest \
host=arm-bcm2708hardfp-linux-gnueabi variant=$v

for t in bin/arm-bcm2708hardfp-linux-gnueabi/roc-test-*
do
LD_LIBRARY_PATH="/opt/raspberry/arm-bcm2708/arm-bcm2708-linux-gnueabi/arm-bcm2708-linux-gnueabi/sysroot/lib" \
qemu-arm -L "${LD_LIBRARY_PATH}" -cpu arm1176 $t # armv6
done
done

0 comments on commit 7797a5e

Please sign in to comment.