-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* On-demand hosted action runner, and use runtime logs to improve test speed * Add support for uploading capybara screenshots to S3
- Loading branch information
Showing
9 changed files
with
1,543 additions
and
35 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--format progress | ||
--format ParallelTests::RSpec::SummaryLogger --out tmp/parallel_runtime_rspec.log | ||
--format ParallelTests::RSpec::SummaryLogger --out tmp/parallel_summary.log | ||
--format ParallelTests::RSpec::RuntimeLogger --out tmp/parallel_runtime.log |
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 |
---|---|---|
@@ -1,20 +1,27 @@ | ||
FROM ruby:2.7.2-buster | ||
MAINTAINER [email protected] | ||
|
||
ENV NODE_VERSION="12.18.3" | ||
ENV CHROME_SOURCE_URL=https://dl.google.com/dl/linux/direct/google-chrome-stable_current_amd64.deb | ||
ENV USER=dev | ||
|
||
RUN useradd -d /home/$USER -m $USER -s /bin/bash | ||
WORKDIR /home/$USER | ||
|
||
RUN curl -s https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz | tar xzf - -C /usr/local --strip-components=1 | ||
|
||
RUN wget --quiet -O- https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - | ||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list | ||
|
||
RUN apt-get update -qq && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
postgresql-9.6 postgresql-client-9.6 time pandoc imagemagick libpq-dev default-jre-headless firefox-esr | ||
|
||
RUN wget --no-verbose -O /tmp/$(basename $CHROME_SOURCE_URL) $CHROME_SOURCE_URL && \ | ||
apt install -y /tmp/$(basename $CHROME_SOURCE_URL) && rm -f /tmp/$(basename $CHROME_SOURCE_URL) | ||
|
||
ENV CI=true | ||
ENV RAILS_ENV=test | ||
ENV NODE_VERSION="12.18.3" | ||
ENV BUNDLER_VERSION="2.1.4" | ||
ENV BUNDLE_WITHOUT="development:production:docker" | ||
ENV OPENPROJECT_DISABLE_DEV_ASSET_PROXY=1 | ||
|
@@ -23,13 +30,7 @@ ENV CAPYBARA_DOWNLOADED_FILE_DIR=/tmp | |
# disable deprecations and other warnings in output | ||
ENV RUBYOPT="-W0" | ||
ENV DATABASE_URL=postgres://app:[email protected]/app | ||
ENV CHROME_SOURCE_URL=https://dl.google.com/dl/linux/direct/google-chrome-stable_current_amd64.deb | ||
ENV JOBS=4 | ||
|
||
RUN wget --no-verbose -O /tmp/$(basename $CHROME_SOURCE_URL) $CHROME_SOURCE_URL && \ | ||
apt install -y /tmp/$(basename $CHROME_SOURCE_URL) && rm -f /tmp/$(basename $CHROME_SOURCE_URL) | ||
|
||
RUN curl -s https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz | tar xzf - -C /usr/local --strip-components=1 | ||
RUN gem install bundler --version "$BUNDLER_VERSION" --no-document | ||
|
||
COPY ./entrypoint.sh /usr/sbin/entrypoint.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
Oops, something went wrong.