Skip to content

Commit

Permalink
Merge branch 'release/6.1' into stable/6
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Nov 9, 2016
2 parents 249b0b6 + 05e4575 commit 461d99f
Show file tree
Hide file tree
Showing 1,188 changed files with 42,793 additions and 21,531 deletions.
14 changes: 2 additions & 12 deletions .rubocop.yml
@@ -1,8 +1,7 @@
AllCops:
TargetRubyVersion: 2.1
TargetRubyVersion: 2.2
Exclude:
- db/schema.rb
- lib/plugins/rfpdf/**/*

AccessorMethodName:
Enabled: false
Expand Down Expand Up @@ -31,15 +30,6 @@ Attr:
BlockNesting:
Enabled: false

BlockDelimiters:
Enabled: true
EnforcedStyle: semantic
IgnoredMethods:
- default_scope

Blocks:
Enabled: false

CaseEquality:
Enabled: false

Expand Down Expand Up @@ -74,7 +64,7 @@ CyclomaticComplexity:
Delegate:
Enabled: false

DeprecatedHashMethods:
PreferredHashMethods:
Enabled: false

Documentation:
Expand Down
58 changes: 30 additions & 28 deletions .travis.yml
Expand Up @@ -29,13 +29,13 @@
language: ruby

rvm:
- 2.2.3
- 2.2.5

sudo: false

cache:
- bundler: true
- directories:
bundler: true
directories:
- frontend/node_modules
- frontend/bower_components

Expand All @@ -56,29 +56,27 @@ env:
matrix:
- "TEST_SUITE=npm"

- "TEST_SUITE=spec_legacy DB=mysql GROUP_SIZE=2 GROUP=1"
- "TEST_SUITE=spec_legacy DB=mysql GROUP_SIZE=2 GROUP=2"
- "TEST_SUITE=cucumber DB=mysql GROUP_SIZE=3 GROUP=1"
- "TEST_SUITE=cucumber DB=mysql GROUP_SIZE=3 GROUP=2"
- "TEST_SUITE=cucumber DB=mysql GROUP_SIZE=3 GROUP=3"
- "TEST_SUITE=rspec DB=mysql GROUP_SIZE=6 GROUP=1"
- "TEST_SUITE=rspec DB=mysql GROUP_SIZE=6 GROUP=2"
- "TEST_SUITE=rspec DB=mysql GROUP_SIZE=6 GROUP=3"
- "TEST_SUITE=rspec DB=mysql GROUP_SIZE=6 GROUP=4"
- "TEST_SUITE=rspec DB=mysql GROUP_SIZE=6 GROUP=5"
- "TEST_SUITE=rspec DB=mysql GROUP_SIZE=6 GROUP=6"

- "TEST_SUITE=spec_legacy DB=postgres GROUP_SIZE=2 GROUP=1"
- "TEST_SUITE=spec_legacy DB=postgres GROUP_SIZE=2 GROUP=2"
- "TEST_SUITE=cucumber DB=postgres GROUP_SIZE=3 GROUP=1"
- "TEST_SUITE=cucumber DB=postgres GROUP_SIZE=3 GROUP=2"
- "TEST_SUITE=cucumber DB=postgres GROUP_SIZE=3 GROUP=3"
- "TEST_SUITE=rspec DB=postgres GROUP_SIZE=6 GROUP=1"
- "TEST_SUITE=rspec DB=postgres GROUP_SIZE=6 GROUP=2"
- "TEST_SUITE=rspec DB=postgres GROUP_SIZE=6 GROUP=3"
- "TEST_SUITE=rspec DB=postgres GROUP_SIZE=6 GROUP=4"
- "TEST_SUITE=rspec DB=postgres GROUP_SIZE=6 GROUP=5"
- "TEST_SUITE=rspec DB=postgres GROUP_SIZE=6 GROUP=6"
- "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=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"

- "TEST_SUITE=spec_legacy DB=postgres"
- "TEST_SUITE=cucumber DB=postgres GROUP_SIZE=2 GROUP=1"
- "TEST_SUITE=cucumber DB=postgres GROUP_SIZE=2 GROUP=2"
- "TEST_SUITE=specs DB=postgres GROUP_SIZE=3 GROUP=1"
- "TEST_SUITE=specs DB=postgres GROUP_SIZE=3 GROUP=2"
- "TEST_SUITE=specs DB=postgres GROUP_SIZE=3 GROUP=3"
- "TEST_SUITE=features DB=postgres GROUP_SIZE=4 GROUP=1"
- "TEST_SUITE=features DB=postgres GROUP_SIZE=4 GROUP=2"
- "TEST_SUITE=features DB=postgres GROUP_SIZE=4 GROUP=3"
- "TEST_SUITE=features DB=postgres GROUP_SIZE=4 GROUP=4"

before_install:
- "rvm @default,@global do gem uninstall bundler -a -x"
Expand All @@ -88,7 +86,11 @@ before_install:
- "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 }'`"
- nvm install v0.12.9
# 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
Expand All @@ -101,7 +103,7 @@ before_script:
- sh script/ci_setup.sh $DB

script:
- sh script/ci_runner.sh $TEST_SUITE $GROUP_SIZE $GROUP
- sh script/ci_runner.sh

notifications:
email: false
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,3 @@
#Changelog

Notable changes to the project are documented in the release notes at https://www.openproject.org/open-source/release-notes/.
5 changes: 3 additions & 2 deletions Dockerfile
@@ -1,6 +1,6 @@
FROM ruby:2.1
FROM ruby:2.2

ENV NODE_VERSION="0.12.7"
ENV NODE_VERSION="6.9.1"
ENV BUNDLER_VERSION="1.11.2"

# install node + npm
Expand Down Expand Up @@ -34,6 +34,7 @@ COPY frontend/*.json /tmp/npm/frontend/
RUN chown -R app:app /tmp/npm

USER app
RUN cd /tmp/npm && npm install npm@4.0
RUN cd /tmp/npm && RAILS_ENV=production npm install
RUN mv /tmp/npm/frontend /usr/src/app/

Expand Down

0 comments on commit 461d99f

Please sign in to comment.