mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
Start testing the DMD DUB package on Travis
This commit is contained in:
parent
8ff83b53be
commit
b9a930abf2
5 changed files with 8 additions and 10 deletions
1
dub.sdl
1
dub.sdl
|
@ -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" \
|
||||||
|
|
1
test/dub_package/.gitignore
vendored
1
test/dub_package/.gitignore
vendored
|
@ -3,3 +3,4 @@ docs.json
|
||||||
__dummy.html
|
__dummy.html
|
||||||
*.o
|
*.o
|
||||||
*.obj
|
*.obj
|
||||||
|
/parser
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
name "dmd-dub-test"
|
|
||||||
description "Test of the DMD Dub package"
|
|
||||||
license "BSL 1.0"
|
|
||||||
|
|
||||||
dependency "dmd" path="../../"
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue