Skip to content

Commit

Permalink
Merge pull request #239 from wilzbach/improve-testing
Browse files Browse the repository at this point in the history
Improve testing
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
  • Loading branch information
dlang-bot committed Jul 3, 2017
2 parents 73f4e27 + 90ecf25 commit 14db827
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
18 changes: 10 additions & 8 deletions .travis.yml
Expand Up @@ -2,14 +2,16 @@ language: d
d:
- dmd
sudo: false
addons:
apt:
packages:
- g++-multilib
- libcurl3-gnutls:i386
env:
- MODEL=32
- MODEL=64

matrix:
include:
- env: MODEL=64
- env: MODEL=32
addons:
apt:
packages:
- g++-multilib
- libcurl4-openssl-dev:i386

script:
- ./travis.sh
2 changes: 1 addition & 1 deletion dman.d
Expand Up @@ -143,7 +143,7 @@ string CHeader(string topic)
static string[] dmccmds =
[
"assert.h", "complex.h", "ctype.h", "fenv.h",
"float.h", "locale.h", "math.h", "setjmp.h,"
"float.h", "locale.h", "math.h", "setjmp.h",
"signal.h", "stdarg.h", "stddef.h", "stdio.h",
"stdlib.h", "string.h", "time.h", "gc.h",
"bios.h", "cerror.h", "disp.h", "dos.h",
Expand Down
11 changes: 2 additions & 9 deletions posix.mak
Expand Up @@ -30,7 +30,7 @@ endif
# default include/link paths, override by setting DFLAGS (e.g. make -f posix.mak DFLAGS=-I/foo)
DFLAGS = -I$(DRUNTIME_PATH)/import -I$(PHOBOS_PATH) \
-L-L$(PHOBOS_PATH)/generated/$(OS)/release/$(MODEL) $(MODEL_FLAG)
DFLAGS += -w
DFLAGS += -w -de

TOOLS = \
$(ROOT)/rdmd \
Expand Down Expand Up @@ -61,14 +61,7 @@ dustmite: $(ROOT)/dustmite
$(ROOT)/dustmite: DustMite/dustmite.d DustMite/splitter.d
$(DMD) $(DFLAGS) DustMite/dustmite.d DustMite/splitter.d -of$(@)

#dreadful custom step because of libcurl dmd linking problem (Bugzilla 7044)
$(CURL_TOOLS): $(ROOT)/%: %.d
$(DMD) $(DFLAGS) -c -of$(@).o $(<)
# grep for the linker invocation and append -lcurl
LINKCMD=$$($(DMD) $(DFLAGS) -v -of$(@) $(@).o 2>/dev/null | grep $(@).o); \
$${LINKCMD} -lcurl

$(TOOLS) $(DOC_TOOLS): $(ROOT)/%: %.d
$(TOOLS) $(DOC_TOOLS) $(CURL_TOOLS): $(ROOT)/%: %.d
$(DMD) $(DFLAGS) -of$(@) $(<)

ALL_OF_PHOBOS_DRUNTIME_AND_DLANG_ORG = # ???
Expand Down
1 change: 1 addition & 0 deletions travis.sh
Expand Up @@ -44,4 +44,5 @@ dub --version

test_rdmd

make -f posix.mak all DMD=$(which dmd)
make -f posix.mak test DMD=$(which dmd)

0 comments on commit 14db827

Please sign in to comment.