Skip to content

Commit c36e058

Browse files
authored
Circleci project setup (redis#2300)
* Add .circleci/config.yml * Delete build-jdk8.yml
1 parent 72dc12e commit c36e058

File tree

3 files changed

+56
-45
lines changed

3 files changed

+56
-45
lines changed

.circleci/config.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Java Gradle CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-java/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/openjdk:8-jdk
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/postgres:9.4
16+
17+
working_directory: ~/repo
18+
19+
environment:
20+
# Customize the JVM maximum heap limit
21+
JVM_OPTS: -Xmx3200m
22+
TERM: dumb
23+
24+
steps:
25+
- checkout
26+
27+
# Download and cache dependencies
28+
- restore_cache:
29+
keys:
30+
- jedis-{{ checksum "pom.xml" }}
31+
# fallback to using the latest cache if no exact match is found
32+
- jedis-
33+
34+
- run: mvn compile
35+
36+
- save_cache:
37+
paths:
38+
- ~/.m2
39+
key: jedis-{{ checksum "pom.xml" }}
40+
41+
- run: |
42+
sudo apt update
43+
sudo apt install -y stunnel
44+
45+
- run: make circleci-install
46+
47+
- run: TEST="\!ModuleTest" make test

.github/workflows/build-jdk8.yml

-45
This file was deleted.

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,15 @@ travis-install:
379379
[ ! -e redis-git ] && git clone https://github.com/antirez/redis.git --branch unstable --single-branch redis-git || true
380380
$(MAKE) -C redis-git clean
381381
$(MAKE) -C redis-git
382+
383+
circleci-install:
384+
sudo apt-get install -y gcc-8 g++-8
385+
cd /usr/bin ;\
386+
sudo ln -sf gcc-8 gcc ;\
387+
sudo ln -sf g++-8 g++
388+
[ ! -e redis-git ] && git clone https://github.com/antirez/redis.git --branch unstable --single-branch redis-git || true
389+
$(MAKE) -C redis-git clean
390+
$(MAKE) -C redis-git
382391

383392
compile-module:
384393
gcc -shared -o /tmp/testmodule.so -fPIC src/test/resources/testmodule.c

0 commit comments

Comments
 (0)