Skip to content

Commit

Permalink
resolve conflicts with master
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-spike committed Apr 6, 2022
2 parents 36af803 + 4c3d5d5 commit 6e5e683
Show file tree
Hide file tree
Showing 117 changed files with 7,928 additions and 5,576 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Pytest Tests
on:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Aerospike Database
uses: reugn/github-action-aerospike@dev
with:
port: 3000
# config-file: 'test/test-instance-data/aerospike.conf'
# feature-key-file: 'test/test-instance-data/features.conf'
- uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- name: Print Python debug info
run: python --version
- name: Setup test config file
run: |
sudo apt-get install jq
cd test
CID=$(docker ps -a | grep 'aerospike-server' | awk 'NF>1{print $NF}')
echo $CID
CIP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $CID)
echo $CIP
python - <<EOF
import configparser
config = configparser.ConfigParser(delimiters=(":"))
config["enterprise-edition"] = {"hosts": "", "user": "", "password": ""}
config["community-edition"] = {"hosts": "$CIP" + ":3000"}
with open("config.conf", "w") as conf:
config.write(conf)
EOF
cat ./config.conf
cd ..
- name: Print Docker debug info
run: |
docker inspect gha_aerospike
docker ps
docker ps -a
docker logs --tail all gha_aerospike
- name: Install dependencies
run: |
sudo apt-get install libssl-dev
sudo apt-get install python3-dev
python -m pip install pytest
- name: Build client
run: |
python setup.py build --force
- name: Install client
run: |
python setup.py install --force
- name: Run tests
run: |
cd test
python -m pytest ./new_tests
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
path = aerospike-client-c
#url = git@github.com:aerospike/aerospike-client-c.git
url = https://github.com/aerospike/aerospike-client-c.git
branch = master
branch = stage
49 changes: 0 additions & 49 deletions .travis.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .travis/aerospike.conf

This file was deleted.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.1.2
7.0.0
2 changes: 1 addition & 1 deletion aerospike-client-c
15 changes: 15 additions & 0 deletions aerospike_helpers/batch/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
##########################################################################
# Copyright 2013-2022 Aerospike, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##########################################################################

0 comments on commit 6e5e683

Please sign in to comment.