|
|
|
@ -1,12 +1,12 @@ |
|
|
|
|
#-- copyright |
|
|
|
|
# OpenProject is a project management system. |
|
|
|
|
# Copyright (C) 2012-2015 the OpenProject Foundation (OPF) |
|
|
|
|
# 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-2013 Jean-Philippe Lang |
|
|
|
|
# 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 |
|
|
|
@ -33,7 +33,7 @@ |
|
|
|
|
language: ruby |
|
|
|
|
|
|
|
|
|
rvm: |
|
|
|
|
- 2.2.5 |
|
|
|
|
- 2.4.1 |
|
|
|
|
|
|
|
|
|
sudo: false |
|
|
|
|
|
|
|
|
@ -41,10 +41,6 @@ cache: |
|
|
|
|
bundler: true |
|
|
|
|
directories: |
|
|
|
|
- frontend/node_modules |
|
|
|
|
- frontend/bower_components |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bundler_args: --without development production docker |
|
|
|
|
|
|
|
|
|
branches: |
|
|
|
|
only: |
|
|
|
@ -56,7 +52,6 @@ env: |
|
|
|
|
global: |
|
|
|
|
- CI=true |
|
|
|
|
- RAILS_ENV=test |
|
|
|
|
- COVERAGE=true |
|
|
|
|
|
|
|
|
|
matrix: |
|
|
|
|
- "TEST_SUITE=plugins:specs DB=mysql GROUP_SIZE=1 GROUP=1" |
|
|
|
@ -65,14 +60,15 @@ env: |
|
|
|
|
- "TEST_SUITE=npm" |
|
|
|
|
|
|
|
|
|
- "TEST_SUITE=spec_legacy DB=mysql" |
|
|
|
|
- "TEST_SUITE=cucumber DB=mysql GROUP_SIZE=2 GROUP=1" |
|
|
|
|
- "TEST_SUITE=cucumber DB=mysql GROUP_SIZE=2 GROUP=2" |
|
|
|
|
- "TEST_SUITE=specs DB=mysql GROUP_SIZE=3 GROUP=1" |
|
|
|
|
- "TEST_SUITE=specs DB=mysql GROUP_SIZE=3 GROUP=2" |
|
|
|
|
- "TEST_SUITE=specs DB=mysql GROUP_SIZE=3 GROUP=3" |
|
|
|
|
- "TEST_SUITE=features DB=mysql GROUP_SIZE=3 GROUP=1" |
|
|
|
|
- "TEST_SUITE=features DB=mysql GROUP_SIZE=3 GROUP=2" |
|
|
|
|
- "TEST_SUITE=features DB=mysql GROUP_SIZE=3 GROUP=3" |
|
|
|
|
- "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. |
|
|
|
@ -90,32 +86,36 @@ before_install: |
|
|
|
|
- git checkout openproject/$TRAVIS_BRANCH |
|
|
|
|
|
|
|
|
|
# End of custom plugin instructions. |
|
|
|
|
- "rvm @default,@global do gem uninstall bundler -a -x" |
|
|
|
|
- gem install bundler -v 1.12.5 |
|
|
|
|
- echo `bundle -v` |
|
|
|
|
- "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 Node LTS Boron (6.9.1) |
|
|
|
|
- nvm install 6.9.1 |
|
|
|
|
# We need npm 4.0 for a bugfix in cross-platform shrinkwrap |
|
|
|
|
# https://github.com/npm/npm/issues/14042 |
|
|
|
|
- npm install npm@4.0 |
|
|
|
|
- travis_retry npm install |
|
|
|
|
|
|
|
|
|
# We need phantomjs 2.0 to get tests passing |
|
|
|
|
- mkdir travis-phantomjs |
|
|
|
|
- wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 |
|
|
|
|
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs |
|
|
|
|
- export PATH=$PWD/travis-phantomjs:$PATH |
|
|
|
|
- "nvm install 6.9.1" |
|
|
|
|
|
|
|
|
|
bundler_args: --binstubs --without development production docker |
|
|
|
|
|
|
|
|
|
before_script: |
|
|
|
|
- sh script/ci_setup.sh $DB |
|
|
|
|
- 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+Flw99zg8SfhPBV89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