Skip to content

CircleCI fixes #667

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

Merged
merged 3 commits into from
Apr 1, 2021
Merged
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
63 changes: 42 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,35 @@ commands:
- setup_remote_docker:
docker_layer_caching: true

relocate-docker-storage:
steps:
- run:
name: Relocate docker overlay2 dir
command: |
sudo systemctl stop docker
sudo mkdir -p /var2/lib/docker
sudo mv /var/lib/docker/overlay2 /var2/lib/docker
sudo mkdir /var/lib/docker/overlay2
sudo mount --bind /var2/lib/docker/overlay2 /var/lib/docker/overlay2
sudo systemctl start docker

setup-automation:
steps:
- run:
name: Setup automation
command: |
git submodule update --init opt/readies
./opt/readies/bin/getpy3
./opt/system-setup.py

setup-build-system:
steps:
- setup-automation
- run:
name: Setup build system
command: |
./opt/system-setup.py

build-steps:
parameters:
platform:
Expand All @@ -57,7 +78,7 @@ commands:
keys:
- v1-dependencies-{{ checksum "get_deps.sh" }}
# If no exact match is found will get dependencies from source
- setup-automation
- setup-build-system
- run:
name: Install dependencies
command: |
Expand Down Expand Up @@ -98,28 +119,18 @@ commands:
steps:
- abort_for_docs
- checkout
- relocate-docker-storage
- run:
name: Relocate docker overlay2 dir
command: |
sudo systemctl stop docker
sudo mkdir -p /var2/lib/docker
sudo mv /var/lib/docker/overlay2 /var2/lib/docker
sudo mkdir /var/lib/docker/overlay2
sudo mount --bind /var2/lib/docker/overlay2 /var/lib/docker/overlay2
sudo systemctl start docker
- run:
name: Setup
command: |
git submodule update --init --recursive
./opt/readies/bin/getpy3
name: Submodule checkout
command: git submodule update --init --recursive
- setup-automation
- run:
name: Build for platform
command: |
docker login -u redisfab -p $DOCKER_REDISFAB_PWD
pushd opt/build/docker
for osnick in bionic xenial; do
make CPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1 build publish
make GPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1 build publish
make CPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1 build
make GPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1 build
done
popd > /dev/null
logstar=bin/artifacts/tests-logs-cpu.tgz
Expand All @@ -128,6 +139,16 @@ commands:
if [[ -e $logstar ]]; then tar -C $logsdir -xzf $logstar; fi
(cd bin/artifacts; tar -cf snapshots.tar snapshots/)
no_output_timeout: 40m
- early_return_for_forked_pull_requests
- run:
name: Build for platform (publish)
command: |
docker login -u redisfab -p $DOCKER_REDISFAB_PWD
cd opt/build/docker
for osnick in bionic xenial; do
make CPU=1 OSNICK=$osnick VERBOSE=1 publish
make GPU=1 OSNICK=$osnick VERBOSE=1 publish
done
- persist_to_workspace:
root: bin/
paths:
Expand Down Expand Up @@ -159,7 +180,7 @@ jobs:
- run:
name: Submodule checkout
command: git submodule update --init --recursive
- setup-automation
- setup-build-system
- run:
name: lint
command: |
Expand Down Expand Up @@ -194,7 +215,7 @@ jobs:
keys:
- build-dependencies-{{ checksum "get_deps.sh" }}
# If no exact match is found will get dependencies from source
- setup-automation
- setup-build-system
- run:
name: Install dependencies
command: |
Expand Down Expand Up @@ -228,11 +249,11 @@ jobs:
keys:
- build-dependencies-{{ checksum "get_deps.sh" }}
# If no exact match is found will get dependencies from source
- setup-automation
- setup-build-system
- run:
name: Install dependencies
command: |
./opt/readies/bin/getredis -v 6 --valgrind --force
./opt/readies/bin/getredis -v 6.0 --valgrind --force
./get_deps.sh cpu
- run:
name: Build for valgrind
Expand Down