Skip to content

Commit

Permalink
scripts/env.sh - google driven development
Browse files Browse the repository at this point in the history
  • Loading branch information
ia committed Mar 27, 2024
1 parent 9166842 commit c2fdf2b
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions scripts/env.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
#!/usr/bin/env bash
set -e

set +e
set -x

echo "${GITHUB_CI_PR_SHA}"
sha="`git rev-parse --short=8 HEAD`"
tag="`git tag --points-at ${sha}`"
git rev-parse --symbolic-full-name --short HEAD
date +%Y-%m-%d
git log --pretty=oneline v0.11..master
git log --pretty=oneline v0.11..master | wc -l
git log --pretty=oneline v0.11...master
git log --pretty=oneline v0.11...master | wc -l
git describe --tags

git log --pretty=oneline origin/v0.11..origin/master
git log --pretty=oneline origin/v0.11..origin/master | wc -l

echo `git describe --tags --abbrev=0`-`git log --pretty=oneline v0.11..master | wc -l`

set -e

# This script is used to enroll toolchain with GitHub Actions for CI/CD purposes
# But this script can be used as reference to install recommended toolchain for building hydrafw.dfu locally as well

Expand All @@ -18,18 +39,3 @@ tar xvjf "${TARBALL}"

echo "export PATH=\"${CURDIR}/${TARDIR}/bin\":\"\${PATH}\"" > build.env

set +e
set -x

echo "${GITHUB_CI_PR_SHA}"
sha="`git rev-parse --short=8 HEAD`"
tag="`git tag --points-at ${sha}`"
git rev-parse --symbolic-full-name --short HEAD
date +%Y-%m-%d
git log --pretty=oneline v0.11..master
git log --pretty=oneline v0.11..master | wc -l
git log --pretty=oneline v0.11...master
git log --pretty=oneline v0.11...master | wc -l
git describe --tags

echo `git describe --tags --abbrev=0`-`git log --pretty=oneline v0.11..master | wc -l`

0 comments on commit c2fdf2b

Please sign in to comment.