Start testing the DMD DUB package on Travis

This commit is contained in:
Sebastian Wilzbach 2017-12-09 09:08:51 +01:00
parent 8ff83b53be
commit b9a930abf2
5 changed files with 8 additions and 10 deletions

View file

@ -42,7 +42,6 @@ subPackage {
sourceFiles \ sourceFiles \
"src/ddmd/astbase.d" \ "src/ddmd/astbase.d" \
"src/ddmd/astbasevisitor.d" \
"src/ddmd/parse.d" \ "src/ddmd/parse.d" \
"src/ddmd/transitivevisitor.d" \ "src/ddmd/transitivevisitor.d" \
"src/ddmd/permissivevisitor.d" \ "src/ddmd/permissivevisitor.d" \

View file

@ -3,3 +3,4 @@ docs.json
__dummy.html __dummy.html
*.o *.o
*.obj *.obj
/parser

View file

@ -1,5 +0,0 @@
name "dmd-dub-test"
description "Test of the DMD Dub package"
license "BSL 1.0"
dependency "dmd" path="../../"

View file

@ -1,3 +1,6 @@
/+dub.sdl:
dependency "dmd" path="../.."
+/
// The tests in this module are highlevel and mostly indented to make sure all // The tests in this module are highlevel and mostly indented to make sure all
// necessary modules are included in the Dub package. // necessary modules are included in the Dub package.

View file

@ -66,9 +66,7 @@ rebuild() {
# test druntime, phobos, dmd # test druntime, phobos, dmd
test() { test() {
# Temporarily skip testing the DUB package test_dub_package
#See also: https://github.com/dlang/dmd/pull/6999
#test_dub_package
make -j$N -C ../druntime -f posix.mak MODEL=$MODEL unittest make -j$N -C ../druntime -f posix.mak MODEL=$MODEL unittest
make -j$N -C ../phobos -f posix.mak MODEL=$MODEL unittest make -j$N -C ../phobos -f posix.mak MODEL=$MODEL unittest
test_dmd test_dmd
@ -86,9 +84,11 @@ test_dmd() {
# test dub package # test dub package
test_dub_package() { test_dub_package() {
source ~/dlang/*/activate # activate host compiler
pushd test/dub_package pushd test/dub_package
dub test dub --single --build=unittest parser.d
popd popd
deactivate
} }
for proj in druntime phobos; do for proj in druntime phobos; do