Skip to content

Commit a66c4ba

Browse files
committed
Update travis
1 parent 07a43e4 commit a66c4ba

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ after_script:
2424
# Build Master Repository(Coding Pages)
2525
- git config user.name "mbinary"
2626
- git config user.email "zhuheqin1@gmail.com"
27-
- git add docs
27+
- cd docs
28+
- git init
29+
- git remote add origin git@github.com:USTC-Resource/USTC-Course.git
30+
- git add --all
2831
- git commit -m "Travis-CI Update pages with build $TRAVIS_BUILD_NUMBER"
29-
- git push -f "https://${GH_TOKEN}@${GH_REF}" master:master
32+
- git push -f "https://${GH_TOKEN}@${GH_REF}" master:gh-pages
3033

3134
addons:
3235
apt:

utils/genIndex.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def genIndex(path,dirs,files,htmlTemp = HTML):
8383
cur = getPath(path)
8484
dirLst = genDirectoryList(path,dirs)
8585
fileLst = genFileList(path,files)
86-
print(path)
8786
cont = htmlTemp.format(DOWNLOAD=path,cur=cur,dirLst = dirLst,fileLst = fileLst,readme=md2html(md))
8887
tar = os.path.join(TARDIR ,path)
8988
if not os.path.exists(tar):os.mkdir(tar)

0 commit comments

Comments
 (0)