From d16a5a98bd2f33b3b41e16507535f4898fd3bd50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 11 Feb 2019 22:11:38 +0100 Subject: [PATCH] removed travis ci MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Bauer --- .travis.yml | 70 ------------------- contrib/travis-ci.org/database.yml.test-mysql | 11 --- .../database.yml.test-postgresql | 11 --- .../trigger_docker_image_build.sh | 18 ----- .../trigger_docker_image_compose_build.sh | 18 ----- .../trigger_docker_image_univention_build.sh | 18 ----- 6 files changed, 146 deletions(-) delete mode 100644 .travis.yml delete mode 100644 contrib/travis-ci.org/database.yml.test-mysql delete mode 100644 contrib/travis-ci.org/database.yml.test-postgresql delete mode 100755 contrib/travis-ci.org/trigger_docker_image_build.sh delete mode 100755 contrib/travis-ci.org/trigger_docker_image_compose_build.sh delete mode 100755 contrib/travis-ci.org/trigger_docker_image_univention_build.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d4adaadc4..000000000 --- a/.travis.yml +++ /dev/null @@ -1,70 +0,0 @@ -dist: xenial -sudo: false -notifications: - email: - - me+tv@zammad.com -env: - - DB=mysql - - DB=postgresql -addons: - apt: - packages: - - autoconf - - automake - - autotools-dev - - bison - - build-essential - - curl - - git-core - - libffi-dev - - libgdbm-dev - - libgmp-dev - - libmysqlclient-dev - - libncurses5-dev - - libreadline-dev - - libsqlite3-dev - - libssl-dev - - libtool - - libxml2-dev - - libxslt1-dev - - libyaml-0-2 - - libyaml-dev - - patch - - pkg-config - - postfix - - sqlite3 - - zlib1g-dev -services: - - mysql - - postgresql -language: ruby -rvm: - - 2.4.4 -before_install: - - gem update --system # Due to: https://github.com/travis-ci/travis-ci/issues/8978 - - git fetch --unshallow - - if [ "${DB}" = "mysql" ]; then mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';"; fi - - if [ "${DB}" = "mysql" ]; then mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'localhost';"; fi - - if [ "${DB}" = "mysql" ]; then cp contrib/travis-ci.org/database.yml.test-mysql config/database.yml; fi - - if [ "${DB}" = "postgresql" ]; then psql -c 'create database zammad_test;' -U postgres; fi - - if [ "${DB}" = "postgresql" ]; then cp contrib/travis-ci.org/database.yml.test-postgresql config/database.yml; fi - - export RAILS_ENV=test - - export ZAMMAD_VERSION=$(git describe --tags | sed -e 's/-[a-z0-9]\{8,\}.*//g') -install: - - if [ "${DB}" = "mysql" ]; then bundle install --without postgres; fi - - if [ "${DB}" = "postgresql" ]; then bundle install; fi -script: - - bundle exec rubocop - - rake db:create - - rake db:migrate - - rake db:seed - - bundle exec rspec -t ~type:system - - bundle exec rake db:environment:set RAILS_ENV=test - - rake db:reset - - rake test:units - - ruby -I test/ test/integration/object_manager_test.rb - - ruby -I test/ test/integration/package_test.rb -after_success: - - if [ "${DB}" = "mysql" ]; then contrib/travis-ci.org/trigger_docker_image_build.sh; fi - - if [ "${DB}" = "mysql" ]; then contrib/travis-ci.org/trigger_docker_image_compose_build.sh; fi - - if [ "${DB}" = "mysql" ]; then contrib/travis-ci.org/trigger_docker_image_univention_build.sh; fi diff --git a/contrib/travis-ci.org/database.yml.test-mysql b/contrib/travis-ci.org/database.yml.test-mysql deleted file mode 100644 index f6b525b4c..000000000 --- a/contrib/travis-ci.org/database.yml.test-mysql +++ /dev/null @@ -1,11 +0,0 @@ -# Warning: The database defined as "test" will be erased and -# re-generated from your development database when you run "rake". -# Do not set this db to the same as development or production. -test: - adapter: mysql2 - database: zammad_test - pool: 50 - timeout: 5000 - encoding: utf8 - username: some_user - password: some_pass diff --git a/contrib/travis-ci.org/database.yml.test-postgresql b/contrib/travis-ci.org/database.yml.test-postgresql deleted file mode 100644 index bda094235..000000000 --- a/contrib/travis-ci.org/database.yml.test-postgresql +++ /dev/null @@ -1,11 +0,0 @@ -# Warning: The database defined as "test" will be erased and -# re-generated from your development database when you run "rake". -# Do not set this db to the same as development or production. -test: - adapter: postgresql - database: zammad_test - pool: 50 - timeout: 5000 - encoding: utf8 - username: postgres - password: diff --git a/contrib/travis-ci.org/trigger_docker_image_build.sh b/contrib/travis-ci.org/trigger_docker_image_build.sh deleted file mode 100755 index f27972919..000000000 --- a/contrib/travis-ci.org/trigger_docker_image_build.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# trigger build of https://github.com/zammad/zammad-docker on https://travis-ci.org/zammad/zammad-docker and upload it to https://hub.docker.com/r/zammad/zammad -# - -REPO_USER="zammad" -REPO="zammad-docker" -BRANCH="master" - -if [ "${TRAVIS_BRANCH}" == 'develop' ]; then - curl -X POST \ - -H "Content-Type: application/json" \ - -H "Travis-API-Version: 3" \ - -H "Accept: application/json" \ - -H "Authorization: token ${TRAVIS_API_TOKEN}" \ - -d '{"request":{ "message": "'"${TRAVIS_COMMIT_MESSAGE}"'","branch":"'${BRANCH}'","config":{"env":{"ZAMMAD_VERSION":"'${ZAMMAD_VERSION}'"}}}}' \ - "https://api.travis-ci.org/repo/${REPO_USER}%2F${REPO}/requests" -fi diff --git a/contrib/travis-ci.org/trigger_docker_image_compose_build.sh b/contrib/travis-ci.org/trigger_docker_image_compose_build.sh deleted file mode 100755 index 2b209d5be..000000000 --- a/contrib/travis-ci.org/trigger_docker_image_compose_build.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/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/ -# - -REPO_USER="zammad" -REPO="zammad-docker-compose" -BRANCH="master" - -if [ "${TRAVIS_BRANCH}" == 'stable' ]; then - curl -X POST \ - -H "Content-Type: application/json" \ - -H "Travis-API-Version: 3" \ - -H "Accept: application/json" \ - -H "Authorization: token ${TRAVIS_API_TOKEN}" \ - -d '{"request":{ "message": "'"${TRAVIS_COMMIT_MESSAGE}"'","branch":"'${BRANCH}'","config":{"env":{"ZAMMAD_VERSION":"'${ZAMMAD_VERSION}'"}}}}' \ - "https://api.travis-ci.org/repo/${REPO_USER}%2F${REPO}/requests" -fi diff --git a/contrib/travis-ci.org/trigger_docker_image_univention_build.sh b/contrib/travis-ci.org/trigger_docker_image_univention_build.sh deleted file mode 100755 index 0e83bc280..000000000 --- a/contrib/travis-ci.org/trigger_docker_image_univention_build.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# trigger build of https://github.com/zammad/zammad-docker-univention on https://travis-ci.org/zammad/zammad-docker-univention and upload it to https://hub.docker.com/r/zammad/zammad-docker-univention -# - -REPO_USER="zammad" -REPO="zammad-docker-univention" -BRANCH="master" - -if [ "${TRAVIS_BRANCH}" == 'stable' ]; then - curl -X POST \ - -H "Content-Type: application/json" \ - -H "Travis-API-Version: 3" \ - -H "Accept: application/json" \ - -H "Authorization: token ${TRAVIS_API_TOKEN}" \ - -d '{"request":{ "message": "'"${TRAVIS_COMMIT_MESSAGE}"'","branch":"'${BRANCH}'","config":{"env":{"ZAMMAD_VERSION":"'${ZAMMAD_VERSION}'"}}}}' \ - "https://api.travis-ci.org/repo/${REPO_USER}%2F${REPO}/requests" -fi