Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
4a126e8a
Commit
4a126e8a
authored
Oct 13, 2021
by
michael-grunder
Committed by
Michael Grunder
Oct 14, 2021
Browse files
Add valgrind and CMake to tests
parent
b73c2d41
Changes
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/build.yml
View file @
4a126e8a
...
@@ -11,18 +11,33 @@ jobs:
...
@@ -11,18 +11,33 @@ jobs:
repository
:
${{ env.GITHUB_REPOSITORY }}
repository
:
${{ env.GITHUB_REPOSITORY }}
ref
:
${{ env.GITHUB_HEAD_REF }}
ref
:
${{ env.GITHUB_HEAD_REF }}
-
name
:
Install
redis-server
-
name
:
Install
dependencies
run
:
|
run
:
|
sudo add-apt-repository -y ppa:chris-lea/redis-server
sudo add-apt-repository -y ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get update
sudo apt-get install -y redis-server
sudo apt-get install -y redis-server valgrind
-
name
:
Build hiredis
-
name
:
Build using cmake
env
:
EXTRA_CMAKE_OPTS
:
-DENABLE_EXAMPLES:BOOL=ON -DENABLE_SSL:BOOL=ON -DENABLE_SSL_TESTS:BOOL=ON
CFLAGS
:
-Werror
CXXFLAGS
:
-Werror
run
:
mkdir build-ubuntu && cd build-ubuntu && cmake ..
-
name
:
Build using makefile
run
:
USE_SSL=1 make
run
:
USE_SSL=1 make
-
name
:
Run tests
-
name
:
Run tests
env
:
SKIPS_AS_FAILS
:
1
run
:
$GITHUB_WORKSPACE/test.sh
run
:
$GITHUB_WORKSPACE/test.sh
# - name: Run tests under valgrind
# env:
# SKIPS_AS_FAILS: 1
# TEST_PREFIX: valgrind --track-origins=yes --leak-check=full
# run: $GITHUB_WORKSPACE/test.sh
centos7
:
centos7
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
container
:
centos:7
container
:
centos:7
...
@@ -37,12 +52,27 @@ jobs:
...
@@ -37,12 +52,27 @@ jobs:
run
:
|
run
:
|
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y --enablerepo=remi install redis
yum -y --enablerepo=remi install redis
yum -y install gcc make openssl-devel
yum -y install gcc
gcc-c++
make openssl-devel
cmake3 valgrind
-
name
:
Build hiredis
-
name
:
Build using cmake
env
:
EXTRA_CMAKE_OPTS
:
-DENABLE_EXAMPLES:BOOL=ON -DENABLE_SSL:BOOL=ON -DENABLE_SSL_TESTS:BOOL=ON
CFLAGS
:
-Werror
CXXFLAGS
:
-Werror
run
:
mkdir build-centos7 && cd build-centos7 && cmake3 ..
-
name
:
Build using Makefile
run
:
USE_SSL=1 make
run
:
USE_SSL=1 make
-
name
:
Run tests
-
name
:
Run tests
env
:
SKIPS_AS_FAILS
:
1
run
:
$GITHUB_WORKSPACE/test.sh
-
name
:
Run tests under valgrind
env
:
SKIPS_AS_FAILS
:
1
TEST_PREFIX
:
valgrind --track-origins=yes --leak-check=full
run
:
$GITHUB_WORKSPACE/test.sh
run
:
$GITHUB_WORKSPACE/test.sh
centos8
:
centos8
:
...
@@ -60,12 +90,27 @@ jobs:
...
@@ -60,12 +90,27 @@ jobs:
dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf -y module install redis:remi-6.0
dnf -y module install redis:remi-6.0
dnf -y group install "Development Tools"
dnf -y group install "Development Tools"
dnf -y install openssl-devel
dnf -y install openssl-devel
cmake valgrind
-
name
:
Build hiredis
-
name
:
Build using cmake
env
:
EXTRA_CMAKE_OPTS
:
-DENABLE_EXAMPLES:BOOL=ON -DENABLE_SSL:BOOL=ON -DENABLE_SSL_TESTS:BOOL=ON
CFLAGS
:
-Werror
CXXFLAGS
:
-Werror
run
:
mkdir build-centos8 && cd build-centos8 && cmake ..
-
name
:
Build using Makefile
run
:
USE_SSL=1 make
run
:
USE_SSL=1 make
-
name
:
Run tests
-
name
:
Run tests
env
:
SKIPS_AS_FAILS
:
1
run
:
$GITHUB_WORKSPACE/test.sh
-
name
:
Run tests under valgrind
env
:
SKIPS_AS_FAILS
:
1
TEST_PREFIX
:
valgrind --track-origins=yes --leak-check=full
run
:
$GITHUB_WORKSPACE/test.sh
run
:
$GITHUB_WORKSPACE/test.sh
macos
:
macos
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment