-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate setup scripts for the base environment for each major version
- Loading branch information
1 parent
9c527f0
commit d8a2247
Showing
5 changed files
with
106 additions
and
30 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,27 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
# Install dependencies | ||
sudo apt-get update; \ | ||
sudo apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
bzr git mercurial subversion cvs \ | ||
ghostscript \ | ||
gsfonts \ | ||
imagemagick libmagick++-dev \ | ||
libnss3-dev; | ||
|
||
# Allow ImageMagick to read PDF files | ||
sudo sed -ri 's/(rights)="none" (pattern="PDF")/\1="read" \2/' /etc/ImageMagick-6/policy.xml | ||
|
||
# Set up Google Chrome for system tests | ||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | ||
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends google-chrome-stable | ||
echo GOOGLE_CHROME_OPTS_ARGS="headless,disable-gpu,no-sandbox,disable-dev-shm-usage" >> $GITHUB_ENV | ||
|
||
# Fix LoadError cannot load such file -- builder | ||
# https://www.redmine.org/issues/40802 | ||
echo "gem 'builder', '~> 3.2.4'" >> $REDMINE_DIR/Gemfile.local |
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,23 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
# Install dependencies | ||
sudo apt-get update; \ | ||
sudo apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
bzr git mercurial subversion cvs \ | ||
ghostscript \ | ||
gsfonts \ | ||
imagemagick libmagick++-dev \ | ||
libnss3-dev; | ||
|
||
# Allow ImageMagick to read PDF files | ||
sudo sed -ri 's/(rights)="none" (pattern="PDF")/\1="read" \2/' /etc/ImageMagick-6/policy.xml | ||
|
||
# Set up Google Chrome for system tests | ||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | ||
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends google-chrome-stable | ||
echo GOOGLE_CHROME_OPTS_ARGS="headless,disable-gpu,no-sandbox,disable-dev-shm-usage" >> $GITHUB_ENV |
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,23 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
# Install dependencies | ||
sudo apt-get update; \ | ||
sudo apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
bzr git mercurial subversion cvs \ | ||
ghostscript \ | ||
gsfonts \ | ||
imagemagick libmagick++-dev \ | ||
libnss3-dev; | ||
|
||
# Allow ImageMagick to read PDF files | ||
sudo sed -ri 's/(rights)="none" (pattern="PDF")/\1="read" \2/' /etc/ImageMagick-6/policy.xml | ||
|
||
# Set up Google Chrome for system tests | ||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | ||
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends google-chrome-stable | ||
echo GOOGLE_CHROME_OPTS_ARGS="headless,disable-gpu,no-sandbox,disable-dev-shm-usage" >> $GITHUB_ENV |
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,23 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
# Install dependencies | ||
sudo apt-get update; \ | ||
sudo apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
bzr git mercurial subversion cvs \ | ||
ghostscript \ | ||
gsfonts \ | ||
imagemagick libmagick++-dev \ | ||
libnss3-dev; | ||
|
||
# Allow ImageMagick to read PDF files | ||
sudo sed -ri 's/(rights)="none" (pattern="PDF")/\1="read" \2/' /etc/ImageMagick-6/policy.xml | ||
|
||
# Set up Google Chrome for system tests | ||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | ||
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends google-chrome-stable | ||
echo GOOGLE_CHROME_OPTS_ARGS="headless,disable-gpu,no-sandbox,disable-dev-shm-usage" >> $GITHUB_ENV |