Skip to content

Commit

Permalink
refine deploy scripts/config
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Mar 24, 2019
1 parent c57ab9a commit fec3a6f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ before_script:

script:
- "if [[ \"$TRAVIS_RUST_VERSION\" == \"stable\" ]] ; then cargo fmt --all -- --check ; else true ; fi"
- cargo build --verbose
- cargo test --verbose -p term -p termwiz -p wezterm -p base91 -p varbincode
- cargo build
- cargo test -p term -p termwiz -p wezterm -p base91 -p varbincode

addons:
apt:
Expand All @@ -48,7 +48,7 @@ addons:
- ragel

before_deploy:
- ./install.sh
- ci/deploy.sh

deploy:
provider: releases
Expand All @@ -57,8 +57,9 @@ deploy:
file_glob: true
file: WezTerm*.zip
skip_cleanup: true
draft: true
on:
repo: wez/wezterm
tags: true
rust: stable
condition: $TRAVIS_OS_NAME = osx

2 changes: 1 addition & 1 deletion ci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x
TRAVIS_TAG=${TRAVIS_TAG:-$(git describe --tags)}
TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d-%H%M%S')-$(git log --format=%h -1)}

./install.sh
bash -x ./install.sh

HERE=$(pwd)

Expand Down
9 changes: 5 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

case $OSTYPE in
darwin*)
APP=$HOME/Applications/WezTerm.app
cargo build --release
mkdir -p $HOME/Applications
APP=$HOME/Applications/WezTerm.app
rm -rf $APP
cp -r assets/macos/WezTerm.app $APP
cp target/release/wezterm $APP
echo "Installed to $APP"
cp -r assets/macos/WezTerm.app $APP && \
cp target/release/wezterm $APP && \
echo "Installed to $APP"
;;
*)
echo "Don't know how to install the app on this system"
Expand Down

0 comments on commit fec3a6f

Please sign in to comment.