Skip to content

Commit

Permalink
check libdparse & dsymbol with min/max dub version
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Jun 8, 2020
1 parent 6d91031 commit d76ac70
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -17,3 +17,6 @@
[submodule "stdx-allocator"]
path = stdx-allocator
url = https://github.com/dlang-community/stdx-allocator.git
[submodule "d-test-utils"]
path = d-test-utils
url = https://github.com/dlang-community/d-test-utils.git
9 changes: 8 additions & 1 deletion .travis.sh
Expand Up @@ -3,7 +3,14 @@
set -e

if [[ $BUILD == dub ]]; then
dub test
if [[ -n $LIBDPARSE_VERSION ]]; then
rdmd ./d-test-utils/test_with_package.d $LIBDPARSE_VERSION libdparse -- dub test
elif if [[ -n $DSYMBOL_VERSION ]]; then
rdmd ./d-test-utils/test_with_package.d $DSYMBOL_VERSION dsymbol -- dub test
else
echo 'Cannot run test without LIBDPARSE_VERSION nor DSYMBOL_VERSION environment variable'
exit 1
fi
elif [[ $DC == ldc2 ]]; then
git submodule update --init --recursive
make test DC=ldmd2
Expand Down
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -10,7 +10,10 @@ os:
- osx
env:
- BUILD=
- BUILD=dub
- BUILD=dub LIBDPARSE_VERSION=min
- BUILD=dub LIBDPARSE_VERSION=max
- BUILD=dub DSYMBOL_VERSION=min
- BUILD=dub DSYMBOL_VERSION=max
branches:
only:
- master
Expand Down
1 change: 1 addition & 0 deletions d-test-utils
Submodule d-test-utils added at 206a2e

0 comments on commit d76ac70

Please sign in to comment.