Skip to content

Commit

Permalink
Download LLVM only once for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Apr 17, 2019
1 parent c1657dc commit 39cceb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ d:
- ldc

install: ./tools/download_llvm.d

before_script:
- git fetch --unshallow
- ./configure --llvm-path tmp/clang

script: dub test --verror --compiler=${DC}

os:
Expand Down Expand Up @@ -41,6 +43,7 @@ matrix:
d: ldc
os: linux
env: LLVM_VERSION=8.0.0
install: ./tools/download_llvm.d --dstep
script: ./tools/build_release.sh
deploy:
provider: releases
Expand Down
5 changes: 0 additions & 5 deletions tools/build_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ app_name="dstep"
target_dir="bin"
target_path="$target_dir/$app_name"

function download_llvm {
./tools/download_llvm.d --dstep
}

function configure {
local os=$(os)
local default_flags="--llvm-path tmp/clang"
Expand Down Expand Up @@ -62,7 +58,6 @@ function archive {
tar Jcf "$(release_name)".tar.xz -C "$target_dir" "$app_name"
}

download_llvm
configure
build
test_dstep
Expand Down

0 comments on commit 39cceb0

Please sign in to comment.