[pkg-d-commits] [ldc] 02/12: [Travis] Update travis.yml to keep testing this branch.

Matthias Klumpp mak at moszumanska.debian.org
Sun Apr 23 22:35:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to annotated tag v0.17.3
in repository ldc.

commit d42fa2e0a5dd6e120793726f005a409a9ff93127
Author: Johan Engelen <jbc.engelen at gmail.com>
Date:   Mon Oct 17 00:24:08 2016 +0200

    [Travis] Update travis.yml to keep testing this branch.
---
 .travis.yml | 128 ++++++++++++++++++++++++------------------------------------
 1 file changed, 51 insertions(+), 77 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 7dbce55..1e52cb2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,16 +1,35 @@
 language: cpp
 sudo: false
-os:
-  - linux
-  - osx
+
+matrix:
+  include:
+    - os: linux
+      env: LLVM_VERSION=3.9.0
+    - os: linux
+      env: LLVM_VERSION=3.8.1
+    - os: linux
+      env: LLVM_VERSION=3.7.1 OPTS="-DMULTILIB=ON"
+    - os: linux
+      env: LLVM_VERSION=3.6.2 OPTS="-DBUILD_SHARED_LIBS=ON"
+    - os: linux
+      env: LLVM_VERSION=3.5.2 OPTS="-DTEST_COVERAGE=ON"
+    - os: osx
+      env: LLVM_CONFIG="llvm-config-3.8"
+    - os: osx
+      env: LLVM_CONFIG="llvm-config-3.8" OPTS="-DBUILD_SHARED_LIBS=ON"
+  allow_failures:
+    #- env: LLVM_VERSION=3.9
+
+cache:
+  directories:
+    - llvm-3.9.0
+    - llvm-3.8.1
+    - llvm-3.7.1
+    - llvm-3.6.2
+    - llvm-3.5.2
 addons:
   apt:
     sources:
-    - llvm-toolchain-precise
-    - llvm-toolchain-precise-3.5
-    - llvm-toolchain-precise-3.6
-    - llvm-toolchain-precise-3.7
-    - llvm-toolchain-precise-3.8
     - ubuntu-toolchain-r-test
     packages:
     - libconfig++8-dev
@@ -21,54 +40,29 @@ addons:
     - g++-4.9-multilib
     - gcc-multilib
     - g++-multilib
-    - linux-libc-dev:i386
-    - libcurl3:i386
     - libedit2
     - libedit-dev
-    - llvm-3.5
-    - llvm-3.5-dev
-    - llvm-3.6
-    - llvm-3.6-dev
-    - llvm-3.7
-    - llvm-3.7-dev
-    - llvm-3.8
-    - llvm-3.8-dev
-    - llvm-3.9
-    - llvm-3.9-dev
+    - libcurl3:i386
+before_install:
+  -
+    if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
+      if [ -z "$(ls -A llvm-$LLVM_VERSION)" ]; then
+        wget -O llvm-$LLVM_VERSION.tar.xz http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz;
+        mkdir llvm-$LLVM_VERSION;
+        tar -xvf llvm-$LLVM_VERSION.tar.xz --strip 1 -C llvm-$LLVM_VERSION;
+      fi;
+      llvm-$LLVM_VERSION/bin/llvm-config --version;
+      export LLVM_CONFIG="llvm-$LLVM_VERSION/bin/llvm-config";
+    fi
 install:
   - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export CC="gcc-4.9"; export CXX="g++-4.9"; fi
-  - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update; brew install llvm37; brew install libconfig; fi;
+  - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update; brew install llvm38; brew install libconfig; fi;
   - pip install --user lit
   - python -c "import lit; lit.main();" --version | head -n 1
+  - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then gdb --version; fi
 
-env:
-  - LLVM_CONFIG="llvm-config-3.7" OPTS="-DMULTILIB=ON"
-  - LLVM_CONFIG="llvm-config-3.6" OPTS="-DBUILD_SHARED_LIBS=ON"
-  - LLVM_CONFIG="llvm-config-3.5" OPTS="-DTEST_COVERAGE=ON"
-  - LLVM_CONFIG="llvm-config-3.8"
-  - LLVM_CONFIG="llvm-config-3.9"
-  # OSX only (and the only ones for OSX):
-  - LLVM_CONFIG="llvm-config-3.7" TEST_CONFIG="Debug"
-  - LLVM_CONFIG="llvm-config-3.7" TEST_CONFIG="Release"
-matrix:
-  allow_failures:
-    - env: LLVM_CONFIG="llvm-config-3.9"
-  exclude:
-    - os: linux
-      env: LLVM_CONFIG="llvm-config-3.7" TEST_CONFIG="Debug"
-    - os: linux
-      env: LLVM_CONFIG="llvm-config-3.7" TEST_CONFIG="Release"
-    - os: osx
-      env: LLVM_CONFIG="llvm-config-3.7" OPTS="-DMULTILIB=ON"
-    - os: osx
-      env: LLVM_CONFIG="llvm-config-3.6" OPTS="-DBUILD_SHARED_LIBS=ON"
-    - os: osx
-      env: LLVM_CONFIG="llvm-config-3.5" OPTS="-DTEST_COVERAGE=ON"
-    - os: osx
-      env: LLVM_CONFIG="llvm-config-3.8"
-    - os: osx
-      env: LLVM_CONFIG="llvm-config-3.9"
 script:
+  - cmake --version
   - cmake -DLLVM_CONFIG=$(which ${LLVM_CONFIG}) $OPTS .
   - make -j3
   # Outputs some environment info, plus makes sure we only run the test suite
@@ -76,39 +70,19 @@ script:
   - bin/ldc2 -version || exit 1
   # Build Phobos & druntime unittest modules.
   -
-    if [ "${TEST_CONFIG}" = "Debug" ]; then
-      MAKEOPTS=-j2 ctest --verbose -R "build-phobos2-ldc-unittest-debug";
-      MAKEOPTS=-j3 ctest --verbose -R "build-druntime-ldc-unittest-debug";
-    elif [ "${TEST_CONFIG}" = "Release" ]; then
-      MAKEOPTS=-j2 ctest --verbose -R "build-phobos2-ldc-unittest" -E "-debug";
-      MAKEOPTS=-j3 ctest --verbose -R "build-druntime-ldc-unittest" -E "-debug";
+    if [ "${OPTS}" = "-DMULTILIB=ON" ]; then
+      make -j2 phobos2-ldc-unittest-debug phobos2-ldc-unittest phobos2-ldc-unittest-debug-32 phobos2-ldc-unittest-32;
+      make -j3 druntime-ldc-unittest-debug druntime-ldc-unittest druntime-ldc-unittest-debug-32 druntime-ldc-unittest-32;
     else
-      MAKEOPTS=-j2 ctest --verbose -R "build-phobos2-ldc-unittest";
-      MAKEOPTS=-j3 ctest --verbose -R "build-druntime-ldc-unittest";
+      make -j2 phobos2-ldc-unittest-debug phobos2-ldc-unittest;
+      make -j3 druntime-ldc-unittest-debug druntime-ldc-unittest;
     fi
   # Run dmd-testsuite.
-  -
-    if [ "${TEST_CONFIG}" = "Debug" ]; then
-      CC="" MAKEOPTS=-j4 ctest --verbose -R "dmd-testsuite-debug";
-    elif [ "${TEST_CONFIG}" = "Release" ]; then
-      CC="" MAKEOPTS=-j4 ctest --verbose -R "dmd-testsuite" -E "-debug";
-    else
-      CC="" MAKEOPTS=-j4 ctest --verbose -R "dmd-testsuite";
-    fi
+  - CC="" DMD_TESTSUITE_MAKE_ARGS=-j3 ctest --verbose -R "dmd-testsuite"
   # Run LLVM IR testsuite.
-  - ctest --output-on-failure -R "llvm-ir-testsuite"
+  - ctest --output-on-failure -V -R "lit-tests"
   # Link and run Phobos & druntime unittest runners.
-  -
-    if [ "${TEST_CONFIG}" = "Debug" ]; then
-      MAKEOPTS=-j3 ctest --verbose -R "-test-runner-debug";
-      ctest -j4 --output-on-failure -R "-debug" -E "testsuite";
-    elif [ "${TEST_CONFIG}" = "Release" ]; then
-      MAKEOPTS=-j3 ctest --verbose -R "-test-runner" -E "-debug";
-      ctest -j4 --output-on-failure -E "(-debug|testsuite)";
-    else
-      MAKEOPTS=-j3 ctest --verbose -R "-test-runner";
-      ctest -j4 --output-on-failure -E "testsuite";
-    fi
+  - ctest -j3 --output-on-failure -E "dmd-testsuite|lit-tests"
 
 after_success:
   -
@@ -128,4 +102,4 @@ notifications:
     on_success: always
     on_failure: always
     use_notice: false
-    skip_join: true
+    skip_join: true
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list