-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_env.sh
More file actions
18 lines (15 loc) · 797 Bytes
/
setup_env.sh
File metadata and controls
18 lines (15 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# Use as: ". setup_env.sh"
export M68K_ATARI_MINT_CROSS=yes
export PROJECT=$(echo "${TRAVIS_REPO_SLUG}" | cut -d '/' -f 2)
export SHORT_ID=$(git log -n1 --format="%h")
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]
then
export PUBLISH_REPO="git@github.com:${USER}/freemint.github.io.git"
export PUBLISH_PATH="builds/${PROJECT}/${TRAVIS_BRANCH}"
export COMMIT_MESSAGE="[${PROJECT}] [${TRAVIS_BRANCH}] Commit: https://github.com/${USER}/${PROJECT}/commit/${TRAVIS_COMMIT}"
else
export PUBLISH_REPO="git@github.com:${USER}/travis-pr.git"
export PUBLISH_PATH="builds/${PROJECT}/${TRAVIS_PULL_REQUEST}"
export COMMIT_MESSAGE="[${TRAVIS_REPO_SLUG}] Download: https://github.com/${USER}/travis-pr/tree/master/${PUBLISH_PATH} ${TRAVIS_REPO_SLUG}#${TRAVIS_PULL_REQUEST}"
fi