From 79be142e1ab16cc8637c4dbf2c4ddb2ad1481572 Mon Sep 17 00:00:00 2001 From: adibrastegarnia Date: Fri, 8 May 2020 14:17:56 -0700 Subject: [PATCH] Update travis to use remote travis script --- .travis.yml | 3 ++- build/bin/trigger-docs-travis | 13 ------------- 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100755 build/bin/trigger-docs-travis diff --git a/.travis.yml b/.travis.yml index 805c628..851529c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,13 +18,14 @@ cache: before_script: - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest + - pushd .. && git clone https://github.com/onosproject/build-tools.git && popd jobs: include: - stage: docs build if: type != pull_request script: - - sh build/bin/trigger-docs-travis $TRAVIS_API_TOKEN + - sh ../build-tools/build/travis/trigger-travis atomix docs master "`git rev-parse --short HEAD`" $TRAVIS_API_TOKEN - stage: tests script: - make coverage diff --git a/build/bin/trigger-docs-travis b/build/bin/trigger-docs-travis deleted file mode 100755 index b58689c..0000000 --- a/build/bin/trigger-docs-travis +++ /dev/null @@ -1,13 +0,0 @@ -TRAVIS_API_TOKEN=$1 -MESSAGE=",\"message\": \"Triggered by upstream build of atomix/go-client commit "`git rev-parse --short HEAD`"\"" -BRANCH="master" -body="{ -\"request\": { - \"branch\":\"$BRANCH\" - $MESSAGE -}}" - - - -curl -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Travis-API-Version: 3" -H "Authorization: token $TRAVIS_API_TOKEN" -d "$body" https://api.travis-ci.org/repo/atomix%2Fdocs/requests -