Skip to content

Commit

Permalink
Let ldc2 build release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Fediushin committed Aug 4, 2017
1 parent f6050b9 commit 5eace43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ if [ "$DC" != gdc ]; then
dub test --compiler=$DC
fi

echo "Building $(git tag -l --points-at HEAD) for $TRAVIS_OS_NAME x86_64 using $DC"
dub build -b release --compiler=$DC
tar -zcf "covered-$(git tag -l --points-at HEAD)-$TRAVIS_OS_NAME-$DC-x86_64.tar.gz" covered
if [ "$DC" == ldc2 ]; then
echo "Building $(git tag -l --points-at HEAD) for $TRAVIS_OS_NAME x86_64 using $DC"
dub build -b release --compiler=$DC
tar -zcf "covered-$(git tag -l --points-at HEAD)-$TRAVIS_OS_NAME-$DC-x86_64.tar.gz" covered
else
dub build -b debug --compiler=$DC
fi
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ deploy:
file: "${FILE_TO_UPLOAD}"
on:
repo: ohdatboi/covered
tags: true
condition: "$DC = ldc2"

0 comments on commit 5eace43

Please sign in to comment.