Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Add travis branch to folder name.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanliu committed Jul 27, 2016
1 parent 7b49bae commit b238fd7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/pre_deploy.sh
Expand Up @@ -29,14 +29,15 @@ __proj_dir="$(dirname "$__dir")"

build_path="${SNAP_PATH:-"${__proj_dir}/build"}"
git_sha=$(git log --pretty=format:"%H" -1)
git_path="${build_path}/${git_sha}"
git_path="${build_path}/${TRAVIS_BRANCH}/${git_sha}"
latest_path="${build_path}/${TRAVIS_BRANCH}/latest"

mkdir -p "${git_path}"
mkdir -p "${build_path}/latest"
mkdir -p "${latest_path}"

_info "copying snap binaries to ${git_path}"
cp "${build_path}/bin/"* "${git_path}"
cp "${build_path}/plugin/"* "${git_path}"
_info "copying snap binaries to latest"
mv "${build_path}/bin/"* "${build_path}/latest"
mv "${build_path}/plugin/"* "${build_path}/latest"
_info "copying snap binaries to ${latest_path}"
mv "${build_path}/bin/"* "${latest_path}"
mv "${build_path}/plugin/"* "${latest_path}"

0 comments on commit b238fd7

Please sign in to comment.