Skip to content

Commit 0bf108c

Browse files
authored
New docker build and artifacts upload (RedisJSON#664)
1 parent 8cd3634 commit 0bf108c

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

.circleci/config.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ commands:
5757
command: |
5858
git submodule update --init deps/readies
5959
./deps/readies/bin/getpy3
60+
python3 -m pip install awscli
6061
6162
install-prerequisites:
6263
parameters:
@@ -66,15 +67,17 @@ commands:
6667
getredis_params:
6768
type: string
6869
default: ""
70+
system_setup_params:
71+
type: string
72+
default: ""
6973
steps:
7074
- setup-automation
7175
- run:
7276
name: System setup
7377
shell: /bin/bash -l -eo pipefail
7478
command: |
75-
python3 -m pip list -v
76-
./sbin/system-setup.py
77-
python3 -m pip list -v
79+
./sbin/system-setup.py <<parameters.system_setup_params>>
80+
python3 -m pip list
7881
source $HOME/.cargo/env
7982
rustc --version
8083
cargo --version
@@ -359,7 +362,7 @@ jobs:
359362

360363
coverage:
361364
docker:
362-
- image: redisfab/rmbuilder:6.2.5-x64-bullseye
365+
- image: redisfab/rmbuilder:6.2.5-x64-bionic
363366
steps:
364367
- early-returns
365368
- checkout-all
@@ -431,6 +434,8 @@ jobs:
431434
docker:
432435
- image: redisfab/rmbuilder:6.2.5-x64-bullseye
433436
steps:
437+
- early-returns
438+
- early-return-for-forked-pull-requests
434439
- checkout
435440
- setup-automation
436441
- run:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ else
178178
$(SHOW)set -e ;\
179179
export RUSTFLAGS="$(RUST_FLAGS)" ;\
180180
export RUSTDOCFLAGS="$(RUST_DOCFLAGS)" ;\
181-
cargo ${CARGO_TOOLCHAIN} build --target $(RUST_TARGET) $(CARGO_FLAGS)
181+
cargo $(CARGO_TOOLCHAIN) build --target $(RUST_TARGET) $(CARGO_FLAGS)
182182
endif
183183
$(SHOW)cp $(TARGET_DIR)/librejson.$(RUST_SOEXT.$(OS)) $(TARGET)
184184
ifneq ($(DEBUG),1)

sbin/pack.sh

-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ SYM=${SYM:-1}
4848
mkdir -p $ARTDIR $ARTDIR/snapshots
4949
ARTDIR=$(cd $ARTDIR && pwd)
5050

51-
. $READIES/bin/enable-utf8
52-
5351
export ARCH=$($READIES/bin/platform --arch)
5452
export OS=$($READIES/bin/platform --os)
5553
export OSNICK=$($READIES/bin/platform --osnick)

sbin/system-setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ def common_first(self):
2323

2424
if self.osnick == 'ol8':
2525
self.install("tar")
26-
if not self.has_command("clang"):
27-
self.run("%s/bin/getclang --modern" % READIES)
26+
self.run("%s/bin/getclang --modern" % READIES)
2827
if not self.has_command("rustc"):
2928
self.run("%s/bin/getrust" % READIES)
3029
self.run("%s/bin/getcmake --usr" % READIES)

tests/qa/qatests

+1-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ class Test:
158158
@click.option('--nop', is_flag=True, default=False, help='Dry run')
159159
@click.option('--verbose', '-v', is_flag=True, default=False, help='Be verbose')
160160
@click.option('--verbosity', type=int, default=0, help='Verbosity level')
161-
def main(token, test, modver, snapshot, rsver, osnick, common, quick, nop, verbose, verbosity, *args, **kwargs):
162-
BB()
161+
def main(token, test, modver, snapshot, rsver, osnick, quick, nop, verbose, verbosity, *args, **kwargs):
163162
global NOP, VERBOSE
164163
VERBOSE = 1 if verbose else verbosity
165164
NOP = nop

0 commit comments

Comments
 (0)