Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced new scripts to configure CI. #914

Merged
merged 1 commit into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/ckeditor5-dev-ci/bin/allocate-swap-memory.sh
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
13 changes: 13 additions & 0 deletions packages/ckeditor5-dev-ci/bin/install-latest-chrome.sh
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
4 changes: 3 additions & 1 deletion packages/ckeditor5-dev-ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"bin": {
"ckeditor5-dev-ci-notify-travis-status": "bin/notify-travis-status.js",
"ckeditor5-dev-ci-notify-circle-status": "bin/notify-circle-status.js",
"ckeditor5-dev-ci-circle-workflow-notifier": "bin/circle-workflow-notifier.js"
"ckeditor5-dev-ci-circle-workflow-notifier": "bin/circle-workflow-notifier.js",
"ckeditor5-dev-ci-allocate-swap-memory": "bin/allocate-swap-memory.sh",
"ckeditor5-dev-ci-install-latest-chrome": "bin/install-latest-chrome.sh"
},
"author": "CKSource (http://cksource.com/)",
"license": "GPL-2.0-or-later",
Expand Down