-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
50 lines (46 loc) · 1.32 KB
/
.travis.yml
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
44
45
46
47
48
49
50
# To auto build what we need.
before_install:
- "sudo apt-get update && sudo apt-get install --no-install-recommends texlive-xetex latex-xcolor texlive-fonts-recommended texlive-latex-extra lmodern texlive-latex-recommended"
- "sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei"
script: # 编译三遍为了保证 目录 引索 正常
- cd Documents
- xelatex APIDoc.tex
- xelatex ArchitectureDesign.tex
- xelatex DemandAnalysis.tex
- xelatex TestReport.tex
- xelatex APIDoc.tex
- xelatex ArchitectureDesign.tex
- xelatex DemandAnalysis.tex
- xelatex TestReport.tex
- xelatex APIDoc.tex
- xelatex ArchitectureDesign.tex
- xelatex DemandAnalysis.tex
- xelatex TestReport.tex
after_success: |
if [ -n "$GITHUB_API_KEY" ]; then
git config --global user.name "travis_auto"
git config --global user.email "[email protected]"
echo "config done"
cd ~
git clone https://qinka:[email protected]/XDUDsTeam/YrarbilRelease.git
echo "clone done"
cd YrarbilRelease
ls
pwd
export RELPATH=$(pwd)
ls
pwd
cd "$TRAVIS_BUILD_DIR"/Documents
ls
pwd
cp *.pdf $RELPATH
echo "copy done"
cd $RELPATH
git add .
git commit -am"$(date)"
echo "commit done"
git push origin master
cd ~
sudo rm -rf $RELPATH
cd "$TRAVIS_BUILD_DIR"
fi