From 55281fb3f97159f4588bc5f7bfa7f967af6b4252 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 6 Jun 2019 11:26:00 -0700 Subject: [PATCH 1/7] Enable artifacts. --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index edb40831a..10e7a4cfa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,11 @@ compiler: python: - "3.6" sudo: required +addons: + artifacts: true + paths: + - ./doc/user_manual.html + - ./doc/release_info.html before_install: - sudo -H DEBIAN_FRONTEND=noninteractive apt-get update - sudo apt-get -y install python3-pip python-dev From ed1e3ebaceb6dee88cad02edab8a3d243af5493d Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 6 Jun 2019 11:31:10 -0700 Subject: [PATCH 2/7] Set target paths. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 10e7a4cfa..477601e59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,8 @@ addons: paths: - ./doc/user_manual.html - ./doc/release_info.html + target_paths: + - /${TRAVIS_BRANCH}/ before_install: - sudo -H DEBIAN_FRONTEND=noninteractive apt-get update - sudo apt-get -y install python3-pip python-dev From 3d9c2dbb5b4742a8208be5379fb780b2cb97d56f Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 6 Jun 2019 11:35:10 -0700 Subject: [PATCH 3/7] See if travis likes variable without {} better. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 477601e59..98b49c884 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ addons: - ./doc/user_manual.html - ./doc/release_info.html target_paths: - - /${TRAVIS_BRANCH}/ + - /$TRAVIS_BRANCH/ before_install: - sudo -H DEBIAN_FRONTEND=noninteractive apt-get update - sudo apt-get -y install python3-pip python-dev From f443befa4b65f9778f2389309f7da6a166148364 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 6 Jun 2019 11:36:30 -0700 Subject: [PATCH 4/7] Grr, what's wrong with you, Travis? --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 98b49c884..fcf8f87db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ addons: - ./doc/user_manual.html - ./doc/release_info.html target_paths: - - /$TRAVIS_BRANCH/ + - /master/ before_install: - sudo -H DEBIAN_FRONTEND=noninteractive apt-get update - sudo apt-get -y install python3-pip python-dev From fbaf0a28b09a6b2f5794c789250ebed95044f67d Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 6 Jun 2019 12:02:16 -0700 Subject: [PATCH 5/7] Try to use "deploy" stage instead of addons to see if it works better. --- .travis.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index fcf8f87db..ea39e6faf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,13 +7,6 @@ compiler: python: - "3.6" sudo: required -addons: - artifacts: true - paths: - - ./doc/user_manual.html - - ./doc/release_info.html - target_paths: - - /master/ before_install: - sudo -H DEBIAN_FRONTEND=noninteractive apt-get update - sudo apt-get -y install python3-pip python-dev @@ -37,5 +30,15 @@ after_success: then sh -x ./scripts/submit-coverage.sh ; fi +deploy: + provider: pages + file: doc/user_manual.html + skip_cleanup: true + github_token: $GITHUB_TOKEN + keep_history: true + repo: https://github.com/sobomax/rtptestdoc.git + on: + branch: master + notifications: webhooks: https://coveralls.io/webhook From 0284279da2e73470804000fbfb143167558a26b5 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 6 Jun 2019 12:17:39 -0700 Subject: [PATCH 6/7] Use repo: correctly --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ea39e6faf..68b70dcfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ deploy: skip_cleanup: true github_token: $GITHUB_TOKEN keep_history: true - repo: https://github.com/sobomax/rtptestdoc.git + repo: sobomax/rtptestdoc.git on: branch: master From a6f314182541153feab585365164bbb3a78aedaa Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 6 Jun 2019 12:33:40 -0700 Subject: [PATCH 7/7] o only submit once per build; o use repo properly; o set taget_branch; o use file_glob. --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 68b70dcfd..720893388 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,11 +32,14 @@ after_success: fi deploy: provider: pages - file: doc/user_manual.html + condition: $CC == "gcc" + file: doc/*.html + file_glob: true skip_cleanup: true github_token: $GITHUB_TOKEN keep_history: true - repo: sobomax/rtptestdoc.git + repo: sobomax/rtptestdoc + target_branch: $TRAVIS_BRANCH on: branch: master