Commit f1ea55a453469c88d74b5b8a88ab7acbcab32500

Authored by Henry Fredrick Schreiner
1 parent f171cd2c

Adding docs build

Showing 2 changed files with 12 additions and 11 deletions
.ci/build_docs.sh
... ... @@ -16,8 +16,7 @@ __AUTHOR__="Jeroen de Bruijn"
16 16 # - TRAVIS_BUILD_NUMBER : The number of the current build.
17 17 # - TRAVIS_COMMIT : The commit that the current build is testing.
18 18 # - DOXYFILE : The Doxygen configuration file.
19   -# - GH_REPO_NAME : The name of the repository.
20   -# - GH_REPO_REF : The GitHub reference to the repository.
  19 +# - TRAVIS_REPO_SLUG : The username / reponame for the repository.
21 20 # - GH_REPO_TOKEN : Secure token to the github repository.
22 21 #
23 22 # For information on how to encrypt variables for Travis CI please go to
... ... @@ -39,13 +38,14 @@ echo 'Setting up the script...'
39 38 # Exit with nonzero exit code if anything fails
40 39 set -e
41 40  
42   -# Create a clean working directory for this script.
43   -mkdir code_docs
44   -cd code_docs
  41 +GH_REPO_ORG=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 1`
  42 +GH_REPO_NAME=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
  43 +GH_REPO_REF="github.com/$GH_REPO_ORG/$GH_REPO_NAME.git"
45 44  
  45 +# Create a clean working directory for this script.
46 46 # Get the current gh-pages branch
47   -git clone -b gh-pages https://git@$GH_REPO_REF
48   -cd $GH_REPO_NAME
  47 +git clone -b gh-pages https://git@$GH_REPO_REF code_docs
  48 +cd code_docs
49 49  
50 50 ##### Configure git.
51 51 # Set the push default to simple i.e. push only the current branch.
... ...
.travis.yml
... ... @@ -4,16 +4,13 @@ branches:
4 4 exclude:
5 5 - gh-pages
6 6 env:
7   - - GH_REPO_NAME: CLI11
8   - - DOXYFILE: $TRAVIS_BUILD_DIR/docs/Doxyfile
9   - - GH_REPO_REF: github.com/henryiii/CLI11.git
10   - - secure: yyNmKB1C1bDyvbI/GWkDoUbBoVI+CIuCgftZ/RKnrynfjOe2uaJSVqo9s1L03Pth0mKsBFRAdq4rzLQ/q9v1FG+zVXwyP+gHqbb5SpvY1rNSjfS0JWjF2ZPNVEZ5ewJiV1adfvqen1ri+KB3CDXXi6BdXvmb0+g6ylnO5JuC3zvs60kXLUpAvRnfVMW8mDllEdVRvEVdjAnstiDd+G5U1WGK60JlBosOuvinkKiqTgcqfKHFojlYfoxTOkCtth4sP8fsxCQRP4kNmS7U9w8prFntWZP7n+kXKWfwLTvKg4RWntMt/f6jkQmMH2nDdvsPXvJzS0khPpQSQCIXIrLIcaHJRRTGv8Fg502RUrysgiOxdrcgRvH9AqFn9e48Sal1tkIHygvld7tifv92XowOsQ4VTiFI5PuZ8Ljr3L+SefwowTRK2R1Iz8flIgXHuWsDYbASi3oLPHMzsTXyLJxyoPKFNaXx2TM9S+73PXQcLUlQSdsvDb5AqqSDd5DUwBDSkixXACI+r33iDs64b8DQj8y7Ko0TTahPdmPjY+J9GPy4tLMeuhzvCy4Nfxiqhrf+wRcdWbKcOZsVDtMJPD4f1o1NZ8M8mRMR3YNU7WDbHAivULei01PZrtn0pPlHS8UO+MeCLB0W5KEQNo3CI0/nyuYwGAyytBwNaNwtaiKgMFY=
11 7 cache:
12 8 directories:
13 9 - ${TRAVIS_BUILD_DIR}/deps/cmake
14 10 matrix:
15 11 include:
16 12 - os: osx
  13 +
17 14 - compiler: clang
18 15 addons:
19 16 apt:
... ... @@ -25,6 +22,9 @@ matrix:
25 22 env:
26 23 - COMPILER=3.5
27 24 - DEPLOY_MAT=yes
  25 + - DOXYFILE=$TRAVIS_BUILD_DIR/docs/Doxyfile
  26 + secure: "Tdqt9SFIri3bu3B0D1aJqkYr5Zhy1yuBgvL5xC84w96DX45/gq27q51jEHxZdyhAo71D5UNxd9It7aRDMixoYmHj9VvPmhX3o34JKcXsXTFmK6Mks55E8gVr8FJfX7Efl8TSrZ677c51aUeScIaLnpL7G2VoKAqp8GA15foBgggQYjMC6h0ciDRh39GEKUWc/aZa1+uqsTw8rYfDTUn6fQ4GQqVaFhcN14V4vDOleeHM17GgOSoZTPXMi/9qAgRkASARvkdndWYwAIu8XFgu7Za8mWqpn2lpl9Yfv/YbRoPTm8FC9yH4VSbS1YKUw2vS6ehdpgqp8c8ANqoCKp4nUTY6O+5HYJO8bq3pvYOdz2Uz99gSagzIQ/JHxPHQ6GH/3j7e79OWI810FLtG7jJ4SCnBrN8tSCWeDlCatDEMyAchXB2bAns61Tcu5Welf9wLYDgFWYlYl20X6Y/a1B44yczvu8h+McptcNCPola2xLj+TVTc5EewgjAFgpugtx39XMC/GLaY74wv+Q4rX0o1V4AQgZ42fXPKpUeum2JXzBD+Sw0Qzp8cu+qGMjLv2i0BoKcOtQ6LuJsftq/0p/EjnlZCupHeV0aiujNHqB1KkKdTX/aerPNef0Xz3ZL+eukGTwTbFUxng4zkV4JL+3f9RykzJ0TJDMavZSPggXXP4P0="
  27 +
28 28 - compiler: gcc
29 29 addons:
30 30 apt:
... ... @@ -33,6 +33,7 @@ matrix:
33 33 packages:
34 34 - g++-6
35 35 env: COMPILER=6
  36 +
36 37 - compiler: gcc
37 38 addons:
38 39 apt:
... ...