-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
135 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
argopt/*.py[co] | ||
argopt/tests/*.py[co] | ||
*.py[co] | ||
# build | ||
argopt.egg-info/ | ||
build/ | ||
dist/ | ||
# test | ||
.tox/ | ||
.coverage | ||
__pycache__ | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,89 @@ | ||
# sudo: required | ||
# dist: trusty | ||
language: python | ||
matrix: | ||
env: | ||
global: | ||
- PIP_CACHE_DIR="$HOME/.cache/pip" # unify pip cache location for all platforms | ||
cache: | ||
pip: true | ||
directories: | ||
- $HOME/.cache/pip | ||
before_cache: | ||
- rm -f $HOME/.cache/pip/log/debug.log | ||
notifications: | ||
email: false | ||
stages: | ||
- check | ||
- test | ||
- name: deploy | ||
if: repo = casperdcl/argopt | ||
jobs: | ||
include: | ||
- python: 2.6 | ||
- stage: test | ||
name: py2.6 | ||
python: 2.6 | ||
env: TOXENV=py26 | ||
- python: 2.7 | ||
dist: trusty | ||
- name: py2.7 | ||
python: 2.7 | ||
env: TOXENV=py27 | ||
- python: 3.4 | ||
- name: py3.4 | ||
python: 3.4 | ||
env: TOXENV=py34 | ||
- python: 3.5 | ||
- name: py3.5 | ||
python: 3.5 | ||
env: TOXENV=py35 | ||
- python: 3.6 | ||
- name: py3.6 | ||
python: 3.6 | ||
env: TOXENV=py36 | ||
- python: 3.7-dev | ||
- name: py3.7 | ||
python: 3.7 | ||
env: TOXENV=py37 | ||
- python: pypy2.7-5.10.0 | ||
- name: pypy2.7 | ||
python: pypy2.7-5.10.0 | ||
env: TOXENV=pypy | ||
- python: pypy3.5-5.10.0 | ||
- name: pypy3.5 | ||
python: pypy3.5-5.10.0 | ||
env: TOXENV=pypy3 | ||
- python: 3.6 | ||
- stage: check | ||
name: style | ||
python: 3.7 | ||
env: TOXENV=flake8 | ||
cache: | ||
pip: true | ||
directories: | ||
- $HOME/.cache/pip | ||
before_cache: | ||
- rm -f $HOME/.cache/pip/log/debug.log | ||
notifications: | ||
email: false | ||
- name: setup | ||
python: 3.7 | ||
env: TOXENV=setup.py | ||
- stage: deploy | ||
name: PyPI and GitHub | ||
python: 3.7 | ||
install: | ||
script: | ||
- pip install .[dev] | ||
- make build | ||
- echo "$GPG_KEY" | base64 --decode > .key.gpg | ||
- gpg --import .key.gpg | ||
- rm .key.gpg | ||
- git log --pretty='format:- %s%n%b---' $(git tag --sort=creatordate | tail -n2 | head -n1)..HEAD > CHANGES.md | ||
deploy: | ||
- provider: script | ||
script: twine upload -s -i casper.dcl@physics.org dist/argopt-* | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
- provider: releases | ||
api_key: $GITHUB_TOKEN | ||
file_glob: true | ||
file: dist/argopt-*.whl* | ||
skip_cleanup: true | ||
draft: true | ||
name: argopt $TRAVIS_TAG stable | ||
edge: true | ||
tag_name: $TRAVIS_TAG | ||
target_commitish: $TRAVIS_COMMIT | ||
release_notes_file: CHANGES.md | ||
on: | ||
tags: true | ||
before_install: | ||
# fix a crash with multiprocessing on Travis | ||
# - sudo rm -rf /dev/shm | ||
# - sudo ln -s /run/shm /dev/shm | ||
- git fetch --tags | ||
- git fetch --tags | ||
install: | ||
- pip install tox | ||
- pip install . | ||
- pip install tox | ||
- pip install . | ||
script: | ||
- tox | ||
- tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
py-make>=0.1.0 # setup.py make/pymake | ||
twine # pymake pypi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[flake8] | ||
max_line_length = 80 | ||
exclude = .asv,.tox,.ipynb_checkpoints,build,dist,.git,__pycache__ |
Oops, something went wrong.