Explorar o código

update yaml to correctly create doxygen in /doc folder

Julius Pfrommer %!s(int64=10) %!d(string=hai) anos
pai
achega
78a60c464c
Modificáronse 1 ficheiros con 8 adicións e 9 borrados
  1. 8 9
      .travis.yml

+ 8 - 9
.travis.yml

@@ -46,21 +46,20 @@ script:
    - make clean
    - cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_UNIT_TESTS=ON -DENABLE_COVERAGE=ON .. 
    - make && make test
+   - coveralls --gcov /usr/bin/gcov-4.8 -E '.*\.h' -E '.*CMakeCXXCompilerId\.cpp' -E '.*CMakeCCompilerId\.c' -r ../
 
 after_success:
-   - git clone --depth=50 -b gh-pages https://$GITAUTH@github.com/acplt/open62541
-   - git rm -rf open62541/doxygen
-   - git rm -rf open62541/doc
-   - cp -r doc open62541/doc
-   - cd open62541/doc
+   - cd ..
+   - git branch gh-pages
+   - git rm -rf doxygen
+   - git rm -rf doc
+   - cp -r build/doc ./
+   - git add -A doc/*
    - git config --global user.email "open62541-travis-ci@users.noreply.github.com"
    - git config --global user.name "Open62541 travis-ci"
    - git config --global push.default simple
-   - git add *
    - git commit -am "doxygen updated by travis-ci"
    - git push https://$GITAUTH@github.com/acplt/open62541
-   - cd .. && cd ..
-   - rm -rf open62541
-   - coveralls --gcov /usr/bin/gcov-4.8 -E '.*\.h' -E '.*CMakeCXXCompilerId\.cpp' -E '.*CMakeCCompilerId\.c' -r ../
    - cd ..
+   - rm -rf open62541
    - ./tools/.coverity.sh