Skip to content

Commit

Permalink
Added script for checking release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch4t4r committed Apr 27, 2020
1 parent 2edfe77 commit 0233d1e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
image: thyrlian/android-sdk

stages:
- check
- test
- build

before_script:
- chmod +x gradlew

prepare_release:
stage: check
script:
- chmod +x prepareRelease.sh
- ./prepareRelease.sh
only:
- release

lint:
stage: test
script:
Expand Down
15 changes: 15 additions & 0 deletions prepareRelease.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
TAG=`git tag --points-at HEAD`
SET_SENTRY_DSN=$SENTRY_DSN

# Release should be tagged
if [[ -z $TAG ]]; then
echo "Release is not tagged."
exit 1
fi

# Sentry DSN should be set
if [[ -z $SET_SENTRY_DSN ]]; then
echo "Sentry DSN is not set."
exit 1
fi

0 comments on commit 0233d1e

Please sign in to comment.