File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ echo " --DEBUG--"
4
+ echo " TRAVIS_REPO_SLUG: $TRAVIS_REPO_SLUG "
5
+ echo " TRAVIS_PHP_VERSION: $TRAVIS_PHP_VERSION "
6
+ echo " TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST "
7
+
8
+ if [ " $TRAVIS_REPO_SLUG " == " PHPOffice/PHPPowerPoint" ] && [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_PHP_VERSION " == " 5.5" ]; then
9
+
10
+ echo -e " Publishing PHPDoc...\n"
11
+
12
+ cp -R build/docs $HOME /docs-latest
13
+ cp -R build/coverage $HOME /coverage-latest
14
+
15
+ cd $HOME
16
+ git config --global user.email
" [email protected] "
17
+ git config --global user.name " travis-ci"
18
+ git clone --quiet --branch=gh-pages https://${GH_TOKEN} @github.com/PHPOffice/PHPPowerPoint gh-pages > /dev/null
19
+
20
+ cd gh-pages
21
+ echo " --DEBUG : Suppression"
22
+ git rm -rf ./docs/$TRAVIS_BRANCH
23
+
24
+ echo " --DEBUG : Dossier"
25
+ mkdir -p docs/$TRAVIS_BRANCH
26
+ mkdir -p coverage/$TRAVIS_BRANCH
27
+
28
+ echo " --DEBUG : Copie"
29
+ cp -Rf $HOME /docs-latest/* ./docs/$TRAVIS_BRANCH /
30
+ cp -Rf $HOME /coverage-latest/* ./coverage/$TRAVIS_BRANCH /
31
+
32
+ echo " --DEBUG : Git"
33
+ git add -f .
34
+ git commit -m " PHPDocumentor (Travis Build: $TRAVIS_BUILD_NUMBER - Branch: $TRAVIS_BRANCH )"
35
+ git push -fq origin gh-pages > /dev/null
36
+
37
+ echo -e " Published PHPDoc to gh-pages.\n"
38
+
39
+ fi
You can’t perform that action at this time.
0 commit comments