Skip to content

Commit

Permalink
Refactor Travis CI after_deploy git clone process (#475)
Browse files Browse the repository at this point in the history
Set clone depth to 1 to speed up the clone and check out process,
and directly specify the branch to be beta-updates.
  • Loading branch information
PeterDaveHello authored Nov 8, 2020
1 parent 6302526 commit ef5bbe5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ deploy:
after_deploy:
- |
if [[ $TRAVIS_TAG == *"beta"* ]]; then
git clone https://github.com/stoically/temporary-containers.git
git clone --depth 1 --branch beta-updates https://github.com/stoically/temporary-containers.git
cd temporary-containers
git checkout beta-updates
export BETA_VERSION=$(echo $TRAVIS_TAG | sed "s/^v//")
sed -i -e "s/[0-9]\+\.[0-9]\+\(beta[0-9]\+\)\?/$BETA_VERSION/g" updates.json
sed -i -e "s/-fx\\.xpi/-an\\+fx\\.xpi/" updates.json
Expand Down

0 comments on commit ef5bbe5

Please sign in to comment.