Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Fix Travis releases
Browse files Browse the repository at this point in the history
  • Loading branch information
faustinoaq committed Mar 7, 2018
1 parent 8dcb0c3 commit 7dd4a3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ matrix:
env:
- DEPLOY_FILENAME=scry_linux.tar.gz
- DEPLOY_DIR=bin/linux
- DEPLOY_STATIC="--static"
- os: osx
env:
- DEPLOY_FILENAME=scry_macOS.tar.gz
- DEPLOY_DIR=bin/darwin
- DEPLOY_STATIC=""

install:
- bin/ci prepare_build
Expand Down
4 changes: 2 additions & 2 deletions bin/ci
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ prepare_build() {

deploy() {
on_both mkdir -p ${DEPLOY_DIR}
with_build_env "crystal build src/scry.cr -s --release --no-debug -o ${DEPLOY_DIR}/scry"
with_build_env "crystal build src/scry.cr -s --release ${DEPLOY_STATIC} --no-debug -o ${DEPLOY_DIR}/scry"
on_both tar -cvzf ${DEPLOY_FILENAME} ${DEPLOY_DIR}/scry
}

Expand All @@ -84,7 +84,7 @@ with_build_env() {
on_linux docker run \
-v $PWD:/mnt \
-w /mnt \
crystal/scry-image /bin/sh -c "'$command --static'"
crystal/scry-image /bin/sh -c "'$command'"


on_osx /bin/sh -c "'$command'"
Expand Down

0 comments on commit 7dd4a3b

Please sign in to comment.