[pkg-d-commits] [ldc] 65/211: CircleCI: build LDC with itself and test that version. (#1810)

Matthias Klumpp mak at moszumanska.debian.org
Sun Apr 23 22:36:10 UTC 2017


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

mak pushed a commit to annotated tag v1.1.0
in repository ldc.

commit fc5182c1fcb8fa5ac1cad320f8a8a213aed643d9
Author: Johan Engelen <jbc.engelen at gmail.com>
Date:   Fri Oct 7 14:38:31 2016 +0200

    CircleCI: build LDC with itself and test that version. (#1810)
    
    CircleCI: build LDC with itself and test that version.
---
 circle.yml | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/circle.yml b/circle.yml
index 684219c..90d07a7 100644
--- a/circle.yml
+++ b/circle.yml
@@ -1,5 +1,9 @@
 # Requires the BETA setting to use Ubunty 14.04 Trusty
 
+# It appears that the current directory is reset at the start of each `-` line,
+# so for example to do an out-of-source build, you have to chain operations
+# after `cd`: `cd build && cmake .. `.
+
 machine:
   environment:
     PATH: "~/$CIRCLE_PROJECT_REPONAME/ldc2-1.0.0-linux-x86_64/bin:$PATH"
@@ -43,10 +47,15 @@ checkout:
 
 test:
   pre:
-    - CC=clang CXX=clang++ cmake .
-    #- CC=clang CXX=clang++ cmake -DLLVM_ROOT_DIR="~/$CIRCLE_PROJECT_REPONAME/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04" -DD_COMPILER="~/$CIRCLE_PROJECT_REPONAME/ldc2-1.0.0-linux-x86_64/bin/ldmd2" .
+    # Build first with a released LDC
+    - mkdir build
+    - cd build && export CC=clang && export CXX=clang++ && cmake .. && make -j3 && bin/ldc2 -version || exit 1
+
+    # Now build LDC with itself and use this second build for further testing
+    - CC=clang CXX=clang++ cmake -DD_COMPILER="build/bin/ldmd2" .
     - make -j3
     - bin/ldc2 -version || exit 1
+
   override:
     - make -j2 phobos2-ldc-unittest-debug phobos2-ldc-unittest
     - make -j3 druntime-ldc-unittest-debug druntime-ldc-unittest

-- 
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