Skip to content
Snippets Groups Projects
Commit ee4fc419 authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

Update ci

parent 76399edf
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ jobs: ...@@ -8,7 +8,7 @@ jobs:
docker: docker:
# specify the version you desire here # specify the version you desire here
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers` # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
- image: circleci/python:3.6.2 - image: circleci/python:3.6.4
# Specify service dependencies here if necessary # Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images # CircleCI maintains a library of pre-built images
...@@ -56,3 +56,74 @@ jobs: ...@@ -56,3 +56,74 @@ jobs:
if [ "${CIRCLE_BRANCH}" == "master" ]; then if [ "${CIRCLE_BRANCH}" == "master" ]; then
tox -e upload_coverage tox -e upload_coverage
fi fi
build-python2.7:
docker:
- image: circleci/python:2.7.13
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
sudo python -m pip install --upgrade pip setuptools wheel mock pytest pytest-cov parameterized secp256k1 cryptography scrypt
sudo python -m pip install -r requirements.txt
sudo python -m pip install --upgrade pycodestyle pyflakes coverage tox codacy-coverage virtualenv
- run:
name: run tests
command: |
tox -e py27
build-python3.4:
docker:
- image: circleci/python:3.4.8
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
sudo python -m pip install --upgrade pip setuptools wheel mock pytest pytest-cov parameterized secp256k1 cryptography scrypt
sudo python -m pip install -r requirements.txt
sudo python -m pip install --upgrade pycodestyle pyflakes coverage tox codacy-coverage virtualenv
- run:
name: run tests
command: |
tox -e py34
build-python3.5:
docker:
- image: circleci/python:3.5.5
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
sudo python -m pip install --upgrade pip setuptools wheel mock pytest pytest-cov parameterized secp256k1 cryptography scrypt
sudo python -m pip install -r requirements.txt
sudo python -m pip install --upgrade pycodestyle pyflakes coverage tox codacy-coverage virtualenv
- run:
name: run tests
command: |
tox -e py35
...@@ -24,35 +24,25 @@ matrix: ...@@ -24,35 +24,25 @@ matrix:
- os: linux - os: linux
python: 2.7 python: 2.7
env: env:
- TOXENV=py27 - TOXENV=short
- os: linux - os: linux
python: 3.4 python: 3.4
env: env:
- TOXENV=py34 - TOXENV=short
- os: linux - os: linux
python: 3.5 python: 3.5
env: env:
- TOXENV=py35 - TOXENV=short
- os: linux - os: linux
python: 3.6 python: 3.6
env: env:
- TOXENV=py36 - TOXENV=py36short
# - os: linux
# python: 3.7
# env:
# - TOXENV=py37
- os: osx
osx_image: xcode7.3
language: objective-c
env:
- TRAVIS_PYTHON_VERSION=3.5
- TOXENV=py35
- os: osx - os: osx
osx_image: xcode9.2 osx_image: xcode9.2
language: objective-c language: objective-c
env: env:
- TRAVIS_PYTHON_VERSION=3.6 - TRAVIS_PYTHON_VERSION=3.6
- TOXENV=py36 - TOXENV=py36short
cache: pip cache: pip
......
...@@ -14,6 +14,18 @@ deps = ...@@ -14,6 +14,18 @@ deps =
commands = commands =
pytest pytest
[testenv:short]
deps =
mock>=2.0.0
pytest
pytest-mock
parameterized
cryptography
secp256k1
scrypt
commands =
pytest tests/beemapi tests/beembase tests/beemgraphene
[testenv:py36] [testenv:py36]
deps = deps =
mock>=2.0.0 mock>=2.0.0
...@@ -30,6 +42,22 @@ commands = ...@@ -30,6 +42,22 @@ commands =
coverage report -m coverage report -m
coverage xml coverage xml
[testenv:py36short]
deps =
mock>=2.0.0
pytest
pytest-mock
parameterized
coverage
cryptography
secp256k1
scrypt
commands =
coverage run --parallel-mode -m pytest tests/beemapi tests/beembase tests/beemgraphene {posargs}
coverage combine
coverage report -m
coverage xml
[testenv:flake8] [testenv:flake8]
deps= deps=
flake8 flake8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment