diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..ef21325 --- /dev/null +++ b/.circleci/config.yml @@ -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 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index 3dc1068..0000000 --- a/.travis.yml +++ /dev/null @@ -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 `_. - 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 `_. - 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" diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100755 index 01ea965..0000000 --- a/appveyor.yml +++ /dev/null @@ -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\*