From 2756486c43635a1c31ac7189784b4b7fd90b8c15 Mon Sep 17 00:00:00 2001 From: obabec Date: Mon, 26 Mar 2018 17:53:50 +0200 Subject: [PATCH] Travis container build --- .travis.yml | 48 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a9ae0b6..5d13a630 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -33,3 +47,5 @@ env: - secure: "hnucaNeYQ+nZoim1B5VtYJafeJWfkK2d7z143fqPkfqfnC/j1kzIq79mPOiX760dj6dRxcGkgvx+aTkJdVFGqvZ0MHx10QSSTT9jtnh1NGUZmCci1N/xAU7av4U+jlmQjSHqkjBQN9wM6HSgtrmsN7ZmS35S15LYmo2nwC3Fgwk=" - secure: "bHdtnPWr5GWviREAFx3PbK7FilknxucQuQLi/dNNig6Cu7kDGChYNMpLF+pcT7ZTaBy21sLnFYRRJQW/DvNokUpB9JYDM8QeLzXSIV2MfLZMVvVlkG7laTu5EcaMo/yGPZNITtStoi5en18PYEwo4EW9xEIS1axuQXmv6ryiZ68=" + +