-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/timeout-error-test
- Loading branch information
Showing
97 changed files
with
4,286 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Dockerfile | ||
.dockerignore | ||
.bundle | ||
log | ||
openshift.local.clusterup | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Fast-forward candidate branch to HEAD of default branch | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: 'The release version number (e.g, 2.11)' | ||
required: true | ||
ref: | ||
description: 'The SHA1 or branch name the candidate branch will point to' | ||
required: true | ||
default: origin/master | ||
|
||
jobs: | ||
fast-forward: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: 3scale-${{ github.event.inputs.release }}-candidate | ||
fetch-depth: 0 | ||
token: ${{ secrets.FF_CANDIDATE_BRANCH_PAT_TOKEN }} | ||
- run: | | ||
export candidate_branch="3scale-${{ github.event.inputs.release }}-candidate" | ||
git checkout ${candidate_branch} && git pull || git checkout -b ${candidate_branch} | ||
git merge ${{ github.event.inputs.ref }} --ff-only | ||
git push origin ${candidate_branch} | ||
name: Push to candidate branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,8 @@ | |
/coverage | ||
|
||
.byebug_history | ||
.env | ||
|
||
openshift.local.clusterup | ||
.ruby-version | ||
.tool-versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
language: ruby | ||
sudo: false | ||
dist: bionic | ||
arch: | ||
- ppc64le | ||
- s390x | ||
services: | ||
- postgresql | ||
|
||
env: | ||
- DATABASE_URL=postgres://postgres@localhost:5431/travis_test | ||
- RAILS_ENV:test | ||
|
||
include: | ||
- os: linux | ||
addons: | ||
packages: | ||
- build-essential | ||
- make | ||
- gcc | ||
- wget | ||
- gem | ||
- shared-mime-info.ppc64le | ||
- zlib.ppc64le | ||
- zlib-devel.ppc64le | ||
|
||
before_install: | ||
- ./.travis/setup_${TRAVIS_OS_NAME}_environment.sh | ||
|
||
script: | ||
- ./.travis/run_test_${TRAVIS_OS_NAME}.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Rails Tests | ||
bundle exec bin/rails test | ||
|
||
# License Finder | ||
bundle exec license_finder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ev | ||
|
||
# Config & Install | ||
gem install bundler:$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tr -d ' '| tail -n 1) | ||
bundle install --deployment --path vendor/bundle --jobs $(grep -c processor /proc/cpuinfo) --retry 3 | ||
|
||
# Rails db:setup | ||
bundle exec bin/rails db:wait db:setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM registry.access.redhat.com/ubi8/ruby-27 | ||
|
||
USER root | ||
RUN dnf --setopt=skip_missing_names_on_install=False,tsflags=nodocs --save \ | ||
&& rpm -Uvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm \ | ||
&& dnf update -y \ | ||
&& dnf remove -y postgresql \ | ||
&& dnf install -y shared-mime-info postgresql12 postgresql12-devel postgresql12-libs \ | ||
&& dnf clean all \ | ||
&& rm -rf /var/cache/yum | ||
|
||
USER default | ||
WORKDIR ${APP_ROOT} | ||
|
||
RUN gem install bundler --version=2.2.19 --no-document | ||
|
||
COPY --chown=default:root Gemfile* ./ | ||
|
||
RUN bundle config build.pg --with-pg-config=/usr/pgsql-12/bin/pg_config \ | ||
&& bundle install --deployment --path vendor/bundle --jobs $(grep -c processor /proc/cpuinfo) --retry 3 | ||
|
||
COPY --chown=default:root . . | ||
|
||
ENV RAILS_LOG_TO_STDOUT=1 | ||
|
||
RUN bundle exec bin/rails server -e production -d; \ | ||
rm -rf tmp/pids | ||
|
||
RUN mkdir -p -m 0775 tmp/cache log \ | ||
&& chown -fR default tmp log db \ | ||
&& chmod -fR g+w tmp log db | ||
|
||
CMD [".s2i/bin/run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.