Restrict build targets

[ci skip]
This commit is contained in:
Oliver Günther
2018-12-10 15:10:57 +01:00
parent f20ad79e6f
commit 17462399a7
3 changed files with 14 additions and 21 deletions
+2 -16
View File
@@ -1,23 +1,9 @@
user: openproject
group: openproject
targets:
debian-8: &debian8
ubuntu-18.04:
build_dependencies:
- libsqlite3-dev
debian-9:
<<: *debian8
ubuntu-14.04:
<<: *debian8
ubuntu-16.04:
<<: *debian8
ubuntu-18.04:
<<: *debian8
centos-7:
dependencies:
- epel-release
sles-12:
build_dependencies:
- sqlite3-devel
before_precompile: "packaging/setup"
after_precompile: "packaging/teardown"
crons:
@@ -35,5 +21,5 @@ wizards:
- 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#dynamic-node-dependencies
buildpack: https://github.com/opf/heroku-buildpack-multi.git
+10
View File
@@ -47,6 +47,16 @@ namespace :packager do
# avoids to load the environment multiple times.
# Removes older assets
task postinstall: [:environment, 'assets:clean', 'setup:scm'] do
# We need to precompile assets when either
# 1. packager requested it
# 2. When a custom Gemfile is added
if ENV['MUST_REBUILD_ASSETS'] == 'true'
Rake::Task['assets:precompile'].invoke
FileUtils.chmod_R 'a+rx', "#{ENV['APP_HOME']}/public/assets/"
shell_setup(['config:set', 'MUST_REBUILD_ASSETS=""'])
end
# Clear any caches
OpenProject::Cache.clear
+2 -5
View File
@@ -2,8 +2,5 @@
set -e
: ${APP_HOME?"Need to set APP_HOME for teardown"}
echo "Cleaning up NODE installation"
pushd $APP_HOME
rm -rf .heroku/node node_modules frontend/node_modules || true
echo "Cleaning up current node_modules folders"
rm -rf node_modules frontend/node_modules || true