From d73285797953ab7c2364ee379444c71f8c0c3f77 Mon Sep 17 00:00:00 2001 From: xerial Date: Thu, 19 Jan 2017 17:49:28 -0800 Subject: [PATCH] Run docker cross compiler on Travis CI --- .travis.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index f7a6074..8d43add 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,12 @@ +sudo: required + +services: + - docker + language: scala -sudo: false - scala: - - 2.11.7 + - 2.11.8 jdk: - openjdk6 @@ -11,4 +14,14 @@ jdk: - oraclejdk7 - oraclejdk8 -script: ./sbt test +script: + - if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then + if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + # Build all native libraries + make native-all && ./sbt test + else + ./sbt test; + fi; + else + make linux64 && ./sbt test; + fi