-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #914 from ckeditor/ci/3510-circleci
Other (ci): Introduced the `ckeditor5-dev-ci-allocate-swap-memory` binary script for allocating the SWAP memory to avoid issues with running out of RAM. Other (ci): Introduced the `ckeditor5-dev-ci-install-latest-chrome` binary script for installing the latest Chrome browser.
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. | ||
# For licensing, see LICENSE.md. | ||
|
||
echo "Allocating swap memory to prevent running out of RAM." | ||
|
||
# Remove existing swap so that allocating new swap does not throw. | ||
sudo swapoff -a | ||
|
||
# Create a 4 gigabyte swapfile. | ||
sudo fallocate -l 4G /swapfile | ||
|
||
# Secure the swapfile by restricting access to root. | ||
sudo chmod 600 /swapfile | ||
|
||
# Mark the file as a swap space. | ||
sudo mkswap /swapfile | ||
|
||
# Enable the swap. | ||
sudo swapon /swapfile |
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,13 @@ | ||
#!/bin/bash | ||
|
||
# @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. | ||
# For licensing, see LICENSE.md. | ||
|
||
echo "Installing the latest Chrome." | ||
|
||
sudo apt-get update | ||
sudo apt-get install lsb-release libappindicator3-1 | ||
curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | ||
sudo dpkg -i google-chrome.deb | ||
sudo sed -i 's|HERE/chrome"|HERE/chrome" --no-sandbox|g' /opt/google/chrome/google-chrome | ||
rm google-chrome.deb |
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