Browse Source

fixed travis.yml

André Bauer 7 years ago
parent
commit
1a8858f73b
2 changed files with 9 additions and 1 deletions
  1. 1 1
      .travis.yml
  2. 8 0
      contrib/travis-ci.org/trigger-docker-compose-build.sh

+ 1 - 1
.travis.yml

@@ -55,4 +55,4 @@ script:
   - ruby -I test/ test/integration/user_device_controller_test.rb
   - ruby -I test/ test/integration/sipgate_controller_test.rb
   - rake db:drop
-after_success: curl -X POST -H "Content-Type: application/json" -H "Travis-API-Version: 3" -H "Accept: application/json" -H "Authorization: ${TRAVIS_API_TOKEN}" -d '{"request": {"branch": "master"}}' 'https://api.travis-ci.org/repo/zammad%2Fzammad-docker-compose/requests'
+after_success: contrib/travis-ci.org/trigger-docker-compose-build.sh

+ 8 - 0
contrib/travis-ci.org/trigger-docker-compose-build.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+#
+# trigger build of https://github.com/zammad/zammad-docker-compose on https://travis-ci.org/zammad/zammad-docker-compose and upload it to https://hub.docker.com/r/zammad/zammad-docker-compose/
+#
+
+if [ ${TRAVIS_BRANCH} == 'stable' ]; then
+  curl -X POST -H "Content-Type: application/json" -H "Travis-API-Version: 3" -H "Accept: application/json" -H "Authorization: ${TRAVIS_API_TOKEN}" -d '{"request": {"branch": "master"}}' 'https://api.travis-ci.org/repo/zammad%2Fzammad-docker-compose/requests'
+fi