-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use __attribute__((unused)) for the cluster asyn attach static functions. This lets us continue to build with -Werror * Fix the tests target to include ssl objects if needed. * Tweak CI invocation of test.sh * Install valkey-server for tests. * Darwin doesn't have clock_nanosleep * Add a sanity check to test.sh
- Loading branch information
1 parent
a0fcb70
commit ce9f77b
Showing
12 changed files
with
71 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,14 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: | | ||
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | ||
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list | ||
sudo apt-get update | ||
sudo apt-get install -y redis-server valgrind libevent-dev | ||
sudo apt-get install -y valgrind libevent-dev cmake libssl-dev | ||
# TODO: Test against Redis and KeyDB in addition to Valkey | ||
- name: Install Valkey | ||
run: | | ||
git clone --depth 1 --branch 7.2.5 https://github.com/valkey-io/valkey.git | ||
cd valkey && sudo BUILD_TLS=yes make install | ||
- name: Build using cmake | ||
env: | ||
|
@@ -26,10 +30,11 @@ jobs: | |
run: USE_SSL=1 TEST_ASYNC=1 make | ||
|
||
- name: Run tests | ||
working-directory: tests | ||
env: | ||
SKIPS_AS_FAILS: 1 | ||
TEST_SSL: 1 | ||
run: $GITHUB_WORKSPACE/test.sh | ||
run: ./test.sh | ||
|
||
# - name: Run tests under valgrind | ||
# env: | ||
|
@@ -48,7 +53,12 @@ jobs: | |
run: | | ||
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm | ||
yum -y --enablerepo=remi install redis | ||
yum -y install gcc gcc-c++ make openssl openssl-devel cmake3 valgrind libevent-devel | ||
yum -y install git gcc gcc-c++ make openssl openssl-devel cmake3 valgrind libevent-devel | ||
- name: Install Valkey | ||
run: | | ||
git clone --depth 1 --branch 7.2.5 https://github.com/valkey-io/valkey.git | ||
cd valkey && BUILD_TLS=yes make install | ||
- name: Build using cmake | ||
env: | ||
|
@@ -61,17 +71,19 @@ jobs: | |
run: USE_SSL=1 TEST_ASYNC=1 make | ||
|
||
- name: Run tests | ||
working-directory: tests | ||
env: | ||
SKIPS_AS_FAILS: 1 | ||
TEST_SSL: 1 | ||
run: $GITHUB_WORKSPACE/test.sh | ||
run: ./test.sh | ||
|
||
- name: Run tests under valgrind | ||
working-directory: tests | ||
env: | ||
SKIPS_AS_FAILS: 1 | ||
TEST_SSL: 1 | ||
TEST_PREFIX: valgrind --error-exitcode=99 --track-origins=yes --leak-check=full | ||
run: $GITHUB_WORKSPACE/test.sh | ||
run: ./test.sh | ||
|
||
centos8: | ||
name: RockyLinux 8 | ||
|
@@ -88,6 +100,11 @@ jobs: | |
dnf -y group install "Development Tools" | ||
dnf -y install openssl-devel cmake valgrind libevent-devel | ||
- name: Install Valkey | ||
run: | | ||
git clone --depth 1 --branch 7.2.5 https://github.com/valkey-io/valkey.git | ||
cd valkey && BUILD_TLS=yes make install | ||
- name: Build using cmake | ||
env: | ||
EXTRA_CMAKE_OPTS: -DENABLE_EXAMPLES:BOOL=ON -DENABLE_SSL:BOOL=ON -DENABLE_SSL_TESTS:BOOL=ON -DENABLE_ASYNC_TESTS:BOOL=ON | ||
|
@@ -99,17 +116,19 @@ jobs: | |
run: USE_SSL=1 TEST_ASYNC=1 make | ||
|
||
- name: Run tests | ||
working-directory: tests | ||
env: | ||
SKIPS_AS_FAILS: 1 | ||
TEST_SSL: 1 | ||
run: $GITHUB_WORKSPACE/test.sh | ||
run: ./test.sh | ||
|
||
- name: Run tests under valgrind | ||
working-directory: tests | ||
env: | ||
SKIPS_AS_FAILS: 1 | ||
TEST_SSL: 1 | ||
TEST_PREFIX: valgrind --error-exitcode=99 --track-origins=yes --leak-check=full | ||
run: $GITHUB_WORKSPACE/test.sh | ||
run: ./test.sh | ||
|
||
freebsd: | ||
runs-on: ubuntu-latest | ||
|
@@ -133,16 +152,16 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: | | ||
brew install openssl [email protected] | ||
brew link [email protected] --force | ||
brew install openssl valkey | ||
- name: Build hiredis | ||
run: USE_SSL=1 make | ||
|
||
- name: Run tests | ||
working-directory: tests | ||
env: | ||
TEST_SSL: 1 | ||
run: $GITHUB_WORKSPACE/test.sh | ||
run: ./test.sh | ||
|
||
windows: | ||
name: Windows | ||
|
@@ -163,7 +182,7 @@ jobs: | |
- name: Run tests | ||
run: | | ||
./build/hiredis-test.exe | ||
./build/test.exe | ||
- name: Install Cygwin Action | ||
uses: cygwin/cygwin-install-action@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters