CircleCI config, remove travis and appveyor

This commit is contained in:
Piotr Lizonczyk
2019-02-24 14:35:56 +01:00
committed by Piotr Lizończyk
parent 0e376efbde
commit d8843dd2c8
3 changed files with 22 additions and 77 deletions

22
.circleci/config.yml Normal file
View File

@@ -0,0 +1,22 @@
version: 2
jobs:
build:
working_directory: ~/noiseprotocol
docker:
- image: circleci/python:3.6.4
steps:
- checkout
- run: sudo chown -R circleci:circleci /usr/local/bin
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.6/site-packages
- run:
command: |
sudo pip install -r requirements.txt
sudo pip install -r dev_requirements.txt
- run:
command: |
mkdir test-reports
pytest --junitxml=test-reports/junit.xml
- store_test_results:
path: test-results
- store_artifacts:
path: test-results

View File

@@ -1,55 +0,0 @@
language: python
python:
- "3.5"
- "3.6"
- "3.5-dev" # 3.5 development branch
- "3.6-dev" # 3.6 development branch
matrix:
fast_finish: true
allow_failures:
- os: osx # Travis is SO slow with OS X.
include:
- os: osx
language: generic
env: PYTHON=3.5.4
- os: osx
language: generic
env: PYTHON=3.6.3
notifications:
email: false
# From https://pythonhosted.org/CodeChat/.travis.yml.html
before_install: |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
# Per the `pyenv homebrew recommendations <https://github.com/yyuu/pyenv/wiki#suggested-build-environment>`_.
brew install openssl readline
# See https://docs.travis-ci.com/user/osx-ci-environment/#A-note-on-upgrading-packages.
# I didn't do this above because it works and I'm lazy.
brew outdated pyenv || brew upgrade pyenv
# virtualenv doesn't work without pyenv knowledge. venv in Python 3.3
# doesn't provide Pip by default. So, use `pyenv-virtualenv <https://github.com/yyuu/pyenv-virtualenv/blob/master/README.md>`_.
brew install pyenv-virtualenv
pyenv install $PYTHON
# I would expect something like ``pyenv init; pyenv local $PYTHON`` or
# ``pyenv shell $PYTHON`` would work, but ``pyenv init`` doesn't seem to
# modify the Bash environment. ??? So, I hand-set the variables instead.
export PYENV_VERSION=$PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}"
pyenv-virtualenv venv
source venv/bin/activate
# A manual check that the correct version of Python is running.
python --version
fi
# command to install dependencies
install:
- "pip install -r requirements.txt"
- "pip install pytest-travis-fold"
# command to run tests
script:
- "python -m pytest"

View File

@@ -1,22 +0,0 @@
environment:
matrix:
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
install:
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
- "%PYTHON%\\python.exe -m pip install pytest wheel"
build: off
test_script:
- "%PYTHON%\\python.exe -m pytest"
after_test:
- "%PYTHON%\\python.exe setup.py bdist_wheel"
artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*