This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree 4 files changed +28
-5
lines changed
4 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,7 @@ coverage:
9
9
10
10
status :
11
11
project : yes
12
- patch : yes/**
13
- * Created by daniele on 07/03/17.
14
- */
15
-
12
+ patch : yes
16
13
changes : no
17
14
18
15
parsers :
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ branches:
6
6
only :
7
7
- master
8
8
9
+ notifications :
10
+ email :
11
+ on_success : change
12
+ on_failure : change
13
+
9
14
install :
10
15
npm install
11
16
@@ -14,3 +19,8 @@ script:
14
19
15
20
after_success :
16
21
./node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov
22
+
23
+ deploy :
24
+ skip_cleanup : true
25
+ provider : script
26
+ script : ./updateDocs.sh
Original file line number Diff line number Diff line change 8
8
"ci_test" : " ./test/runTests.sh --no-warning" ,
9
9
"js_test" : " node test/runTests.js" ,
10
10
"_test" : " nyc ./node_modules/mocha/bin/mocha test/testsOrder.js --report spec" ,
11
- "generate-docs " : " node_modules/.bin/jsdoc --configure .jsdoc.json --verbose"
11
+ "generate_docs " : " ./ node_modules/.bin/jsdoc --configure .jsdoc.json --verbose"
12
12
},
13
13
"repository" : {
14
14
"type" : " git" ,
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ if [ ${TRAVIS_BRANCH} = " master" ] && [ ${TRAVIS_PULL_REQUEST} = " false" ]
4
+ then
5
+ npm run generate_docs
6
+ git config --global user.email
" [email protected] "
7
+ git config --global user.name " travis-ci"
8
+ git clone --quiet --branch=gh-pages https://${GH_TOKEN} @https://github.com/danibix95/chino-nodejs.git gh-pages
9
+ cd gh-pages
10
+ git rm -rf .
11
+ cp -r ../docs/* /* .
12
+ git add -A
13
+ git commit -m " Documentation updated by Travis CI (build $TRAVIS_BUILD_NUMBER )"
14
+ git push --quiet https://${GH_TOKEN} @github.com/danibix95/chino-nodejs.git gh-pages
15
+ cd ..
16
+ fi
You can’t perform that action at this time.
0 commit comments