Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
beem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
beem
Commits
ee4fc419
Commit
ee4fc419
authored
6 years ago
by
Holger Nahrstaedt
Browse files
Options
Downloads
Patches
Plain Diff
Update ci
parent
76399edf
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.circleci/config.yml
+72
-1
72 additions, 1 deletion
.circleci/config.yml
.travis.yml
+5
-15
5 additions, 15 deletions
.travis.yml
tox.ini
+28
-0
28 additions, 0 deletions
tox.ini
with
105 additions
and
16 deletions
.circleci/config.yml
+
72
−
1
View file @
ee4fc419
...
@@ -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
This diff is collapsed.
Click to expand it.
.travis.yml
+
5
−
15
View file @
ee4fc419
...
@@ -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=py36
short
cache
:
pip
cache
:
pip
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
28
−
0
View file @
ee4fc419
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment