From 5a887c83392dc6aa57fdfb361ce47a00044dfde8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 3 Nov 2017 15:54:28 +0100 Subject: [PATCH] Updated travis.yml for geckodriver --- .travis.yml | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..16393d5683 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,130 @@ +#-- copyright +# OpenProject is a project management system. +# Copyright (C) 2012-2017 the OpenProject Foundation (OPF) +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: +# Copyright (C) 2006-2017 Jean-Philippe Lang +# Copyright (C) 2010-2013 the ChiliProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + +# Travis configuration based on the respective OpenProject core configuration. +# Everything save for the matrix section and additional `before_install` +# instructions is copied and pasted from the core. + +language: ruby + +rvm: + - 2.4.2 + +sudo: false +dist: trusty + +sudo: false + +cache: + bundler: true + directories: + - frontend/node_modules + +branches: + only: + - master + - dev + - /^(stable|release)\/.*$/ + +env: + global: + - CI=true + - RAILS_ENV=test + + matrix: + - "TEST_SUITE=plugins:specs DB=mysql GROUP_SIZE=1 GROUP=1" + - "TEST_SUITE=plugins:features DB=mysql GROUP_SIZE=1 GROUP=1" + + - "TEST_SUITE=npm" + + - "TEST_SUITE=spec_legacy DB=mysql" + - "TEST_SUITE=cucumber DB=mysql GROUP_SIZE=1 GROUP=1" + - "TEST_SUITE=specs DB=mysql GROUP_SIZE=4 GROUP=1" + - "TEST_SUITE=specs DB=mysql GROUP_SIZE=4 GROUP=2" + - "TEST_SUITE=specs DB=mysql GROUP_SIZE=4 GROUP=3" + - "TEST_SUITE=specs DB=mysql GROUP_SIZE=4 GROUP=4" + - "TEST_SUITE=features DB=mysql GROUP_SIZE=4 GROUP=1" + - "TEST_SUITE=features DB=mysql GROUP_SIZE=4 GROUP=2" + - "TEST_SUITE=features DB=mysql GROUP_SIZE=4 GROUP=3" + - "TEST_SUITE=features DB=mysql GROUP_SIZE=4 GROUP=4" + +before_install: + # Custom plugin instructions follow. + + # Move the plugin into a subfolder. The plugin-provided Gemfile.plugins + # must refer to this folder. + - mkdir -p plugins/this + - echo `ls -a | tail -n+3 | grep -v plugins` plugins/this/ | xargs mv + + # Get OpenProject. + # Doing the fetch detour as you cannot clone into the current directory. + - git init + - git remote add openproject https://github.com/opf/openproject.git + - git fetch --depth=1 openproject + - git checkout openproject/$TRAVIS_BRANCH + + # End of custom plugin instructions. + - "echo `firefox -v`" + - "export DISPLAY=:99.0" + - "/sbin/start-stop-daemon --start -v --pidfile ./tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1920x1080x16" + - "echo `xdpyinfo -display :99 | grep 'dimensions' | awk '{ print $2 }'`" + + # Install geckodriver + - wget https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz + - mkdir geckodriver + - tar -xzf geckodriver-v0.19.0-linux64.tar.gz -C geckodriver + - export PATH=$PATH:$PWD/geckodriver + + # Install Node LTS Boron (6.9.1) + - "nvm install 6.9.1" + +bundler_args: --binstubs --without development production docker + +before_script: + - sh script/ci_setup.sh $TEST_SUITE $DB + +script: + - sh script/ci_runner.sh + +notifications: + email: false + slack: + on_success: change + on_failure: always + on_pull_requests: false + rooms: + # CE + - secure: "mQqyZRjOix72MAAcjIanPOCfzMlQOqMhYOEd+6SNCcK7nb9ku0rPtFYWtifvp3+ajA5YKVJZ/W2qRn+Flw99zg8SfhPBV89SALXapUnjuZW0rcPexP0vrQW/AR6176DG3+WQOM8BFOYmN1yuGsz7YZK3xZo7yPp8XHKwzWoEYS6BOEUyfyE5T8dGJGqIKwpGEnnpBJf+CVsXeX56xg6wL+9CPVIEDb7IcrPoYQ5K6Kh9gq+7Ube7I7lbsSpdm1TAS4si7G9A6IaJ4WD1QvnUDrajGz2IM/bkP0zs50kGSrbagm707QMC8P4aLzJ64aUOfziyeYA1BSiDl5dZCUc3/dJtjMkUoRlmErwe6x8N5mwn6iVQ5LtWQeJIiy+wrBvjnghkl2/B7z3iZvEsDl6Uip6Dtv7ccmSskkh0ulsEykxWdAsRddpSaEYHv5pqex9aVgIMljM8o3DFTQclhVyGM0nrryDiMjhkCR5spighp/uR7nHEULlmJMGilyjqy6iB3/S6O1CXY110jpgYEAqhxkY9VA1hYYVLsoKV90uUGlnJcQRqQPoP3q1OqUGlRT5Y2ydM2FTBvsBGB+bhMQgZhZORqlkfIYzWDoUs4v6vM9v16XsP6TeXzNd0BPCZ+WamtOZBpwvSXZl85lqIEFONZ12uIr1R/sPsv6bQndN6gLk=" + # EE + - secure: "P6co7i4H73ZBjH/zRt5a+OuZp+x0aDUOorXRKO3RmCfgR2cu02+MB0nHkXrbKsfzFMBLjEEi3nqVUBhC2vxW+vpPrYuhlxp3it7hVwGhTgghjRjI1/0ybAUZjxYgeTt+QhUJsKEuE3tlwPq/YQ5hqhcO/AtEpORn9W11oi0NGaCmSzcKKoXgPWSfiU1DZZV//lpvkGzxaaYWL9GgmiQOEKN8PSRT0RH1HjAYug7X3D6fkPdyYkwmzL5buBO6r1/hJb+zCXtoak5xbCSy2dT3qN3FSbjlUZc2r5mgXSYgThM6KCHuQiT8zI1eRhHXMPxY47SpEGk1NuRMFqhSU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