forked from frankfanslc/pine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.sh
23 lines (20 loc) · 816 Bytes
/
env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# gem install travis
# . ./functions.*
env -0 | tr '\n' '\v' | tr '\0' '\n' | sed -r 's/\v/\\n/' >build.env
# handle_deploy() {
# if [ "$TRAVIS_TAG" -a -f file.up ]; then
# printc "skipping deployment because of checksum matching."
# GIT_REMOTE=$(git remote show origin | grep -i "push.*url" \
# | sed -r 's~.*push.*?:[ \s]+(.*?://)(.*)$~\1'$GIT_USER:$GIT_TOKEN'@\2~i')
# git tag -d $TRAVIS_TAG
# git push --delete $GIT_REMOTE $TRAVIS_TAG
# travis cancel $TRAVIS_BUILD_NUMBER --no-interactive -t $TRAVIS_TOKEN
# fi
# }
# handle_tags() {
# ## since a build has been deployed rebuild dependend images on the /trees repo
# git clone --depth=1 https://$GIT_USER:[email protected]/$trees_repo && cd $(basename $trees_repo)
# git tag ${tag_prefix}-$(md)
# git push --tags --force
# }