Skip to content

Commit

Permalink
Circleci project setup (#4)
Browse files Browse the repository at this point in the history
* Add .circleci/config.yml

* Use python 3.9 for tests

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Use LNM_PHONE_NUMBER instead of B2C_PHONE_NUMBER for B2C tests

* Revert "Use LNM_PHONE_NUMBER instead of B2C_PHONE_NUMBER for B2C tests"

This reverts commit ea26453.

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Added B2C_PHONE_NUMBER in tox.ini environment

* Add more environment variables to tox.ini

* Updated config.yml
  • Loading branch information
martinmogusu committed Jun 23, 2022
1 parent efaee01 commit 7d55580
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: 2.1
orbs:
python: circleci/python@1.5.0

jobs:
build-and-test-py-27-django-1-8:
docker:
- image: cimg/python:3.9.0
steps:
- checkout
- python/install-packages:
pkg-manager: pip
- run:
name: Run tests
command: pip install tox && tox -e py27-django1.8
build-and-test-py-27-django-1-11:
docker:
- image: cimg/python:3.9.0
steps:
- checkout
- python/install-packages:
pkg-manager: pip
- run:
name: Run tests
command: pip install tox && tox -e py27-django1.11
build-and-test-py-39-django-2-1:
docker:
- image: cimg/python:3.9.0
steps:
- checkout
- python/install-packages:
pkg-manager: pip
- run:
name: Run tests
command: pip install tox && tox -e py39-django2.1
workflows:
sample:
jobs:
- build-and-test-py-27-django-1-8
- build-and-test-py-27-django-1-11
- build-and-test-py-39-django-2-1
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ passenv =
MPESA_EXPRESS_SHORTCODE
MPESA_SHORTCODE_TYPE
MPESA_PASSKEY
MPESA_INITIATOR_USERNAME
MPESA_INITIATOR_SECURITY_CREDENTIAL
LNM_PHONE_NUMBER
B2C_PHONE_NUMBER

commands =
python {toxinidir}/setup.py test
Expand Down

0 comments on commit 7d55580

Please sign in to comment.