forked from grails/grails-spring-security-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtravis-build.sh
executable file
·43 lines (27 loc) · 1.07 KB
/
travis-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
set -e
rm -rf build
./gradlew -q clean check install --stacktrace
integration-test-app/run_integration_tests.sh
functional-test-app/run_functional_tests.sh
if [[ -n $TRAVIS_TAG && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
./gradlew bintrayUpload --stacktrace
./gradlew docs --stacktrace
git config --global user.name "$GIT_NAME"
git config --global user.email "$GIT_EMAIL"
git config --global credential.helper "store --file=~/.git-credentials"
echo "https://$GH_TOKEN:@github.com" > ~/.git-credentials
git checkout gh-pages
git rm v3/spring-security-core-*.epub
mv build/docs/spring-security-core-*.epub v3
git add v3/spring-security-core-*.epub
git rm v3/spring-security-core-*.pdf
mv build/docs/spring-security-core-*.pdf v3
git add v3/spring-security-core-*.pdf
mv build/docs/index.html v3
git add v3/index.html
mv build/docs/ghpages.html index.html
git add index.html
git commit -a -m "Updating docs for Travis build: https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID"
git push origin
fi