forked from openproceedings/openproceedings-buildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·20 lines (20 loc) · 752 Bytes
/
build.sh
File metadata and controls
executable file
·20 lines (20 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
REPOSITORY_NAME=$1
git clone --quiet https://${GH_TOKEN}@github.com/$REPOSITORY_NAME.git content &> /dev/null
ln -s content/images images
ls images/
make html
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
if [ "$TRAVIS" == "true" ]; then
git config --global user.email "scipy-proceedings-bot@andreazonca.com"
git config --global user.name "scipy-proceedings-bot"
fi
# commit json information to the repository
cd content
git add -f .
git commit -m "Travis build $TRAVIS_BUILD_NUMBER: figshare metadata" -m "[ci skip]"
git push -fq origin master &> /dev/null
echo -e "Figshare metadata added to content repository\n"
fi