Skip to content

Commit

Permalink
Travis container build
Browse files Browse the repository at this point in the history
  • Loading branch information
obabec committed Mar 26, 2018
1 parent 63234e6 commit 2756486
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
language: java

before_install: "git clone -b travis `git config --get remote.origin.url` target/travis"

install:
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty main universe"
- sudo apt-get update -q
- sudo apt-get install -y gcc-4.8-arm-linux-gnueabihf

script: "
if [ ${TRAVIS_PULL_REQUEST} = 'false' ];
then
mvn clean deploy --settings target/travis/settings.xml -Dcompiler.exec=arm-linux-gnueabihf-gcc-4.8 -Dlinker.exec=arm-linux-gnueabihf-ld;
else
mvn clean verify --settings target/travis/settings.xml -Dcompiler.exec=arm-linux-gnueabihf-gcc-4.8 -Dlinker.exec=arm-linux-gnueabihf-ld;
fi"

sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- gcc-4.8-arm-linux-gnueabihf
- gcc-4.4-multilib
- libc6
- libc6-dev
- libc6-dev:i386
- linux-headers-generic

before_install:
- git clone -b travis `git config --get remote.origin.url` target/travis

install: true

script: |
set -x
mkdir ~/include
export C_INCLUDE_PATH=/home/$USER/include
ln -s /usr/include/asm-generic /home/$USER/include/asm
if [ ${TRAVIS_PULL_REQUEST} = 'false' ]
then
mvn clean deploy --settings target/travis/settings.xml -Dcompiler.exec='arm-linux-gnueabihf-gcc-4.8' -Dlinker.exec=arm-linux-gnueabihf-ld
else
mvn clean verify --settings target/travis/settings.xml -Dcompiler.exec='arm-linux-gnueabihf-gcc-4.8' -Dlinker.exec=arm-linux-gnueabihf-ld
fi
jdk:
- oraclejdk8
Expand All @@ -33,3 +47,5 @@ env:
- secure: "hnucaNeYQ+nZoim1B5VtYJafeJWfkK2d7z143fqPkfqfnC/j1kzIq79mPOiX760dj6dRxcGkgvx+aTkJdVFGqvZ0MHx10QSSTT9jtnh1NGUZmCci1N/xAU7av4U+jlmQjSHqkjBQN9wM6HSgtrmsN7ZmS35S15LYmo2nwC3Fgwk="
- secure: "bHdtnPWr5GWviREAFx3PbK7FilknxucQuQLi/dNNig6Cu7kDGChYNMpLF+pcT7ZTaBy21sLnFYRRJQW/DvNokUpB9JYDM8QeLzXSIV2MfLZMVvVlkG7laTu5EcaMo/yGPZNITtStoi5en18PYEwo4EW9xEIS1axuQXmv6ryiZ68="



0 comments on commit 2756486

Please sign in to comment.