Skip to content

Commit

Permalink
Run test (#87)
Browse files Browse the repository at this point in the history
* Run test

* Update tests

* Updated tests and requirements.txt

* Updated tests and requirements.txt
  • Loading branch information
tiberiu44 committed Feb 28, 2019
1 parent c0f0339 commit 4337498
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
jobs:
test_api_and_main:
test_api_and_main_and_upload:
docker:
- image: circleci/python
steps:
Expand All @@ -15,25 +15,15 @@ jobs:
cd /home/circleci/project/
pip3 install --user -r requirements.txt
- run:
name: test api
name: test main
command: |
cd /home/circleci/project/
python3 tests/api_tests.py
python3 tests/main_tests.py
- run:
name: test maim
name: test api
command: |
cd /home/circleci/project/
python3 tests/main_tests.py
build:
docker:
- image: circleci/python
steps:
- checkout
- run:
name: init .pypirc
command: |
echo -e "[pypi]" >> ~/.pypirc
python3 tests/api_tests.py
- run:
name: create packages
command: |
Expand All @@ -44,11 +34,10 @@ jobs:
command: |
python3 -m pip install --user --upgrade twine
python3 -m twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD || echo "Package already exists"
workflows:
version: 2
test_api_and_main:
jobs:
- test_api_and_main
build_and_upload:
test_api_and_main_and_upload:
jobs:
- build
- test_api_and_main_and_upload
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ xmltodict==0.11.0

# Testing
nose2==0.7.3
regex

0 comments on commit 4337498

Please sign in to comment.