-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since TravisCI.org was deprecated we've been without any tests. This commit adds back basic tests in Ubuntu, CentOS, and MacOS. More sophisticated tests/platforms to come in the future (e.g. 32bit tests). See: #992
- Loading branch information
1 parent
fa900ef
commit 0cac8da
Showing
2 changed files
with
67 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Build and test | ||
on: push | ||
|
||
jobs: | ||
ubuntu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ env.GITHUB_REPOSITORY }} | ||
ref: ${{ env.GITHUB_HEAD_REF }} | ||
|
||
- name: Install redis-server | ||
run: | | ||
sudo add-apt-repository -y ppa:chris-lea/redis-server | ||
sudo apt-get update | ||
sudo apt-get install -y redis-server | ||
- name: Build hiredis | ||
run: USE_SSL=1 make | ||
|
||
- name: Run tests | ||
run: $GITHUB_WORKSPACE/test.sh | ||
|
||
centos7: | ||
runs-on: ubuntu-latest | ||
container: centos:7 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ env.GITHUB_REPOSITORY }} | ||
ref: ${{ env.GITHUB_HEAD_REF }} | ||
|
||
- name: Install redis-server | ||
run: | | ||
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm | ||
yum -y --enablerepo=remi install redis | ||
yum -y install gcc make openssl-devel | ||
- name: Build hiredis | ||
run: USE_SSL=1 make | ||
|
||
- name: Run tests | ||
run: $GITHUB_WORKSPACE/test.sh | ||
|
||
macos: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ env.GITHUB_REPOSITORY }} | ||
ref: ${{ env.GITHUB_HEAD_REF }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
brew install openssl redis | ||
- name: Build hiredis | ||
run: USE_SSL=1 make | ||
|
||
- name: Run tests | ||
run: $GITHUB_WORKSPACE/test.sh |
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