mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
parent
3c2ced0989
commit
cdad3230f0
2 changed files with 11 additions and 8 deletions
17
.travis.yml
17
.travis.yml
|
@ -1,29 +1,31 @@
|
||||||
dist: xenial # required for Python >= 3.7
|
dist: xenial # required for Python >= 3.7
|
||||||
|
language: python
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: "Python 3.6 on Linux"
|
- name: "Python 3.6 on Linux"
|
||||||
language: python
|
|
||||||
python: 3.6
|
python: 3.6
|
||||||
- name: "Python 3.7 on Linux"
|
- name: "Python 3.7 on Linux"
|
||||||
language: python
|
|
||||||
python: 3.7
|
python: 3.7
|
||||||
|
- name: "Python 3.7 on Linux, not UTC"
|
||||||
|
python: 3.7
|
||||||
|
env:
|
||||||
|
- TZ=America/Edmonton
|
||||||
- name: "Python 3.8 on Linux"
|
- name: "Python 3.8 on Linux"
|
||||||
language: python
|
|
||||||
python: 3.8
|
python: 3.8
|
||||||
- name: "Python dev on Linux"
|
- name: "Python dev on Linux"
|
||||||
language: python
|
|
||||||
python: nightly
|
python: nightly
|
||||||
- name: "Python 3.7.4 on MacOS"
|
- name: "Python 3.7.4 on MacOS"
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
|
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
|
||||||
language: shell # 'language: python' is an error on Travis CI macOS
|
language: shell # 'language: python' is an error on Travis CI macOS
|
||||||
before_install:
|
before_install:
|
||||||
- pip3 install poetry~=0.12.17
|
- pip3 install poetry~=0.12.17 # 'pip' points to Python 2 on MacOS
|
||||||
- name: "Python 3.8.0 on Windows"
|
- name: "Python 3.8.0 on Windows"
|
||||||
os: windows
|
os: windows
|
||||||
langage: shell # 'language: python' is an error on Travis CI Windows
|
language: shell # 'language: python' is an error on Travis CI Windows
|
||||||
before_install:
|
before_install:
|
||||||
- choco install python --version 3.8.0
|
- choco install python --version 3.8.0
|
||||||
|
- refreshenv # add Python to PATH
|
||||||
- python -m pip install --upgrade pip
|
- python -m pip install --upgrade pip
|
||||||
- pip install poetry~=0.12.17
|
- pip install poetry~=0.12.17
|
||||||
allow_failures:
|
allow_failures:
|
||||||
|
@ -33,13 +35,14 @@ git:
|
||||||
depth: false
|
depth: false
|
||||||
cache: pip
|
cache: pip
|
||||||
before_install:
|
before_install:
|
||||||
|
- date
|
||||||
- pip install poetry~=0.12.17
|
- pip install poetry~=0.12.17
|
||||||
install:
|
install:
|
||||||
# we run `poetry version` here to appease poetry about '0.0.0-source'
|
# we run `poetry version` here to appease poetry about '0.0.0-source'
|
||||||
- poetry version
|
- poetry version
|
||||||
- poetry install
|
- poetry install
|
||||||
script:
|
|
||||||
- poetry run python --version
|
- poetry run python --version
|
||||||
|
script:
|
||||||
- poetry run behave
|
- poetry run behave
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
|
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
|
||||||
|
|
|
@ -164,7 +164,7 @@ def has_error(context):
|
||||||
|
|
||||||
@then('we should get no error')
|
@then('we should get no error')
|
||||||
def no_error(context):
|
def no_error(context):
|
||||||
assert context.exit_status is 0, context.exit_status
|
assert context.exit_status == 0, context.exit_status
|
||||||
|
|
||||||
|
|
||||||
@then('the output should be parsable as json')
|
@then('the output should be parsable as json')
|
||||||
|
|
Loading…
Add table
Reference in a new issue