Skip to content
Permalink
Browse files

Release OpenProject 8.3.0

  • Loading branch information...
oliverguenther committed Mar 7, 2019
2 parents 328d0cc + aa538d6 commit e40a20e2fb572d2b73b7126839b50b32330984a1
Showing 1,026 changed files with 34,753 additions and 17,149 deletions.
@@ -1,3 +1,2 @@
https://github.com/pkgr/pkgr-buildpack-imagemagick.git
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1
https://github.com/pkgr/heroku-buildpack-ruby.git#v199-1
@@ -29,8 +29,9 @@ plugins:
enabled: true
brakeman:
enabled: true
# as long as bundler-audit does not support bundler 2.0 we disable it
bundler-audit:
enabled: true
enabled: false
eslint:
enabled: true
checks:
@@ -4,6 +4,11 @@ targets:
debian-8: &debian8
build_dependencies:
- libsqlite3-dev
dependencies:
- poppler-utils
- unrtf
- tesseract-ocr
- catdoc
debian-9:
<<: *debian8
ubuntu-14.04:
@@ -19,6 +24,7 @@ targets:
build_dependencies:
- sqlite3-devel
before_precompile: "packaging/setup"
after_precompile: "packaging/teardown"
crons:
- packaging/cron/openproject-hourly-tasks
- packaging/cron/openproject-clear-old-sessions
@@ -29,10 +35,10 @@ services:
installer: https://github.com/pkgr/installer.git
wizards:
- https://github.com/pkgr/addon-legacy-installer.git
- https://github.com/pkgr/addon-mysql.git
- https://github.com/pkgr/addon-postgres
- https://github.com/pkgr/addon-apache2.git
- https://github.com/finnlabs/addon-repositories.git
- https://github.com/pkgr/addon-smtp.git
- https://github.com/pkgr/addon-memcached.git
- https://github.com/pkgr/addon-openproject.git
- https://github.com/opf/addon-openproject.git
buildpack: https://github.com/opf/heroku-buildpack-multi.git
@@ -29,7 +29,7 @@
language: ruby

rvm:
- 2.5.1
- 2.6.1

sudo: required
dist: trusty
@@ -59,7 +59,7 @@ before_install:
# work around https://github.com/travis-ci/travis-ci/issues/8969
- travis_retry gem update --system
# Don't install 1.16.3
- gem install bundler -v 1.16.2
- gem install bundler -v 2.0.1 --no-document

# Install Node latest LTS
# This should only be necessary when preparing the cache or for npm test runs
@@ -89,6 +89,7 @@ jobs:
script:
- bash script/ci/setup.sh spec_legacy mysql
- bash script/ci/runner.sh spec_legacy 1 1
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'spec_legacy (1/1) - postgres'
script:
@@ -99,6 +100,7 @@ jobs:
script:
- bash script/ci/setup.sh units mysql
- bash script/ci/runner.sh units 4 1
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'units (1/4) - postgres'
script:
@@ -109,6 +111,7 @@ jobs:
script:
- bash script/ci/setup.sh units mysql
- bash script/ci/runner.sh units 4 2
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'units (2/4) - postgres'
script:
@@ -119,6 +122,7 @@ jobs:
script:
- bash script/ci/setup.sh units mysql
- bash script/ci/runner.sh units 4 3
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'units (3/4) - postgres'
script:
@@ -129,6 +133,7 @@ jobs:
script:
- bash script/ci/setup.sh units mysql
- bash script/ci/runner.sh units 4 4
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'units (4/4) - postgres'
script:
@@ -139,6 +144,7 @@ jobs:
script:
- bash script/ci/setup.sh features mysql
- bash script/ci/runner.sh features 4 1
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'features (1/4) - postgres'
script:
@@ -149,6 +155,7 @@ jobs:
script:
- bash script/ci/setup.sh features mysql
- bash script/ci/runner.sh features 4 2
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'features (2/4) - postgres'
script:
@@ -159,6 +166,7 @@ jobs:
script:
- bash script/ci/setup.sh features mysql
- bash script/ci/runner.sh features 4 3
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'features (3/4) - postgres'
script:
@@ -169,6 +177,7 @@ jobs:
script:
- bash script/ci/setup.sh features mysql
- bash script/ci/runner.sh features 4 4
if: env(SKIP_MYSQL_TESTING) IS blank
- stage: test
name: 'features (4/4) - postgres'
script:
@@ -179,7 +188,7 @@ jobs:
script:
- bash script/ci/setup.sh plugins:units mysql
- bash script/ci/runner.sh plugins:units 1 1
if: head_branch !~ /^core\//
if: env(SKIP_MYSQL_TESTING) IS blank AND head_branch !~ /^core\//
- stage: test
name: 'plugins:units (1/1) - postgres'
script:
@@ -191,7 +200,7 @@ jobs:
script:
- bash script/ci/setup.sh plugins:features mysql
- bash script/ci/runner.sh plugins:features 1 1
if: head_branch !~ /^core\//
if: env(SKIP_MYSQL_TESTING) IS blank AND head_branch !~ /^core\//
- stage: test
name: 'plugins:features (1/1) - postgres'
script:
@@ -203,7 +212,7 @@ jobs:
script:
- bash script/ci/setup.sh plugins:cucumber mysql
- bash script/ci/runner.sh plugins:cucumber 1 1
if: head_branch !~ /^core\//
if: env(SKIP_MYSQL_TESTING) IS blank AND head_branch !~ /^core\//
- stage: test
name: 'plugins:cucumber (1/1) - postgres'
script:
@@ -1,12 +1,15 @@
FROM ruby:2.5-stretch
FROM ruby:2.6-stretch

ENV NODE_VERSION="8.11.1"
ENV BUNDLER_VERSION="1.16.2"
ENV NODE_VERSION="10.15.0"
ENV BUNDLER_VERSION="2.0.1"
ENV APP_USER app
ENV APP_PATH /usr/src/app
ENV APP_DATA /var/db/openproject
ENV ATTACHMENTS_STORAGE_PATH /var/db/openproject/files

# Set a default key base, ensure to provide a secure value in production environments!
ENV SECRET_KEY_BASE=OVERWRITE_ME

# install node + npm
RUN curl https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz | tar xzf - -C /usr/local --strip-components=1

@@ -25,7 +28,7 @@ RUN apt-get update -qq && \
# we don't want to pollute any locally-mounted directory
RUN useradd -d /home/$APP_USER -m $APP_USER
RUN mkdir -p $APP_PATH $APP_DATA
RUN gem install bundler --version "${bundler_version}"
RUN gem install bundler --version "${bundler_version}" --no-document

WORKDIR $APP_PATH

@@ -61,7 +64,7 @@ RUN chown -R $APP_USER:$APP_USER $APP_DATA
COPY packaging/conf/database.yml ./config/database.yml

# Run the npm postinstall manually after it was copied
RUN DATABASE_URL=sqlite3:///tmp/db.sqlite3 SECRET_TOKEN=foobar RAILS_ENV=production bundle exec rake assets:precompile
RUN DATABASE_URL=sqlite3:///tmp/db.sqlite3 RAILS_ENV=production bundle exec rake assets:precompile

# Include pandoc
RUN DATABASE_URL=sqlite3:///tmp/db.sqlite3 RAILS_ENV=production bundle exec rails runner "puts ::OpenProject::TextFormatting::Formats::Markdown::PandocDownloader.check_or_download!"
Oops, something went wrong.

0 comments on commit e40a20e

Please sign in to comment.
You can’t perform that action at this time.