浏览代码

pushing releases for all branches

Stasik0 9 年之前
父节点
当前提交
9d88a13da4
共有 3 个文件被更改,包括 22 次插入6 次删除
  1. 2 1
      .travis.yml
  2. 20 0
      tools/.deployGH_doc.sh
  3. 0 5
      tools/.deployGH.sh

+ 2 - 1
.travis.yml

@@ -31,7 +31,8 @@ script:
 - "if [ ${TRAVIS_OS_NAME} == 'linux' ]; then . ./tools/travis_linux_script.sh; fi"
 - "if [ ${TRAVIS_OS_NAME} == 'osx' ]; then . ./tools/travis_osx_script.sh; fi"
 after_success:
-- if [[ ( ${TRAVIS_OS_NAME} == "linux" && ${CC} == "gcc" && ${TRAVIS_BRANCH} == "master") ]]; then ./tools/.deployGH.sh; fi
+- if [[ ( ${TRAVIS_OS_NAME} == "linux" && ${CC} == "gcc" && ${TRAVIS_BRANCH} == "master") ]]; then ./tools/.deployGH_doc.sh; fi
+- if [[ ( ${TRAVIS_OS_NAME} == "linux" && ${CC} == "gcc" ) ]]; then ./tools/.deployGH_release.sh; fi
 - if [[ ( ${TRAVIS_OS_NAME} == "linux" && ${CC} == "gcc" && ${TRAVIS_BRANCH} == "master") ]]; then ./tools/.coverity.sh; fi
 before_deploy:
 - rm build -rf && mkdir -p build && cd build

+ 20 - 0
tools/.deployGH_doc.sh

@@ -0,0 +1,20 @@
+#!/bin/bash
+
+#
+# This script is run by travis-ci and pushes generated
+# Doxygen docs and single-source distributions to open62541-www
+#
+
+git clone --depth=5 -b gh-pages https://$GITAUTH@github.com/acplt/open62541-www
+cd open62541-www
+#handle doc
+git rm -r -f doc
+cp -r ../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 commit -am "gh-pages updated by travis-ci"
+git push https://$GITAUTH@github.com/acplt/open62541-www
+cd ..
+rm -rf open62541-www

+ 0 - 5
tools/.deployGH.sh

@@ -12,7 +12,6 @@ BRANCH="$(git log --pretty=format:"%d" --date=iso --abbrev=10 --all -1)"
 DATE="$(git log --pretty=format:"%ad" --date=iso --abbrev=10 --all -1)"
 COMMENT="$(git log --pretty=format:"%s" --date=iso --abbrev=10 --all -1)"
 
-git fetch origin coverity_scan
 git clone --depth=5 -b gh-pages https://$GITAUTH@github.com/acplt/open62541-www
 cd open62541-www
 #hanndle releases
@@ -46,10 +45,6 @@ head "-$TAGSTOSAVE" raw.txt > temp && mv temp raw.txt
 fi
 cd ..
 
-#handle doc
-git rm -r -f doc
-cp -r ../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