Skip to content

Commit

Permalink
Update test system setup (#3225)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 authored Dec 7, 2022
1 parent ed57047 commit 0560ada
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
with:
java-version: '8'
distribution: 'temurin'
- name: stunnel
- name: System setup
run: |
sudo apt-get update
sudo apt-get install -y stunnel make
sudo apt update
sudo apt install -y stunnel make
make system-setup
- name: Cache dependencies
uses: actions/cache@v2
Expand All @@ -42,19 +42,19 @@ jobs:
~/.m2/repository
/var/cache/apt
key: jedis-${{hashFiles('**/pom.xml')}}
- name: mvn offline
- name: Maven offline
run: |
mvn -q dependency:go-offline
- name: run tests
- name: Run tests
run: |
TEST="" make test
env:
JVM_OPTS: -Xmx3200m
TERM: dumb
- name: redismod docker
run: docker run -p 52567:6379 -d redislabs/redismod:edge
- name: run tests
- name: Run tests
run: mvn -DmodulesDocker="localhost:52567" -Dtest="redis.clients.jedis.modules.**" test
- name: codecov
- name: Codecov
run: |
bash <(curl -s https://codecov.io/bash)
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,7 @@ release:
make stop

system-setup:
sudo apt-get install -y gcc-8 g++-8
cd /usr/bin ;\
sudo ln -sf gcc-8 gcc ;\
sudo ln -sf g++-8 g++
sudo apt install -y gcc g++
[ ! -e redis-git ] && git clone https://github.com/redis/redis.git --branch unstable --single-branch redis-git || true
$(MAKE) -C redis-git clean
$(MAKE) -C redis-git
Expand Down

0 comments on commit 0560ada

Please sign in to comment.