-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
207 changed files
with
347,884 additions
and
152,888 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ before_install: | |
# Update conda | ||
- conda update --yes conda | ||
- conda info -a | ||
# Set git info | ||
- git config --global user.name "Travis Deploy" | ||
- git config --global user.email "[email protected]" | ||
|
||
jobs: | ||
include: | ||
|
@@ -50,7 +53,7 @@ jobs: | |
- conda config --add channels rmg | ||
- conda config --set anaconda_upload yes | ||
script: | ||
- conda build --token $CONDA_TOKEN --user rmg RMG-database | ||
- conda build --token $CONDA_TOKEN --user rmg RMG-database/.conda | ||
- os: osx | ||
install: | ||
# Setup conda build | ||
|
@@ -59,4 +62,4 @@ jobs: | |
- conda config --add channels rmg | ||
- conda config --set anaconda_upload yes | ||
script: | ||
- conda build --token $CONDA_TOKEN --user rmg RMG-database | ||
- conda build --token $CONDA_TOKEN --user rmg RMG-database/.conda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,55 +2,30 @@ | |
|
||
set -e # exit with nonzero exit code if anything fails | ||
|
||
openssl aes-256-cbc -K $encrypted_02f40ca58e32_key -iv $encrypted_02f40ca58e32_iv -in deploy_key.enc -out deploy_key -d | ||
|
||
echo 'Travis Build Dir: '$TRAVIS_BUILD_DIR | ||
|
||
if $TRAVIS_PULL_REQUEST | ||
then | ||
DEPLOY_BRANCH=$TRAVIS_PULL_REQUEST | ||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
DEPLOY_BRANCH=$TRAVIS_PULL_REQUEST | ||
else | ||
DEPLOY_BRANCH=$TRAVIS_BRANCH | ||
fi | ||
|
||
# Deploy built site to this branch | ||
echo Deploy branch: $DEPLOY_BRANCH | ||
echo "DEPLOY_BRANCH: $DEPLOY_BRANCH" | ||
|
||
# SSH URL of the RMG/RMG-tests repo that is pushed to: | ||
REPO=git@github.com:ReactionMechanismGenerator/RMG-tests.git | ||
# URL for the official RMG-tests repository | ||
REPO=https://${GH_TOKEN}@github.com/ReactionMechanismGenerator/RMG-tests.git | ||
|
||
if [ -n "$TRAVIS_BUILD_ID" ]; then | ||
|
||
# | ||
# Set the following environment variables in the travis configuration (.travis.yml) | ||
# | ||
# DEPLOY_BRANCH - The only branch that Travis should deploy from | ||
# GIT_NAME - The Git user name | ||
# GIT_EMAIL - The Git user email | ||
# | ||
GIT_NAME="Travis Deploy" | ||
GIT_EMAIL="[email protected]" | ||
echo DEPLOY_BRANCH: $DEPLOY_BRANCH | ||
echo GIT_NAME: $GIT_NAME | ||
echo GIT_EMAIL: $GIT_EMAIL | ||
if [ "$TRAVIS_BRANCH" != "$DEPLOY_BRANCH" ]; then | ||
echo "Travis should only deploy from the DEPLOY_BRANCH ($DEPLOY_BRANCH) branch" | ||
exit 0 | ||
else | ||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
echo "Travis should not deploy from pull requests" | ||
exit 0 | ||
else | ||
|
||
# use the decrypted deploy SSH key as | ||
# the credentials to push to the RMG-tests repo: | ||
chmod 600 deploy_key | ||
eval `ssh-agent -s` | ||
ssh-add deploy_key | ||
git config --global user.name "$GIT_NAME" | ||
git config --global user.email "$GIT_EMAIL" | ||
fi | ||
elif [ "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
echo "Travis should not deploy from pull requests" | ||
exit 0 | ||
fi | ||
|
||
fi | ||
|
||
# create a temporary folder: | ||
|
@@ -76,4 +51,4 @@ git checkout $RMGTESTSBRANCH | |
git commit --allow-empty -m rmgdb-$REV | ||
|
||
# push to the branch to the RMG/RMG-tests repo: | ||
git push -f $REPO $RMGTESTSBRANCH > /dev/null | ||
git push -f $REPO $RMGTESTSBRANCH > /dev/null |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.