Skip to content

Commit

Permalink
Adjust travis.yml for muultiple jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed May 7, 2018
1 parent c4a6f83 commit 1882c57
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 28 deletions.
64 changes: 37 additions & 27 deletions .travis.yml
@@ -1,27 +1,37 @@
language: python
services:
- redis-server
env:
global:
# - DYNACONF_SETTINGS=dynaconf.test_settings
# - DOTENV_PATH_FOR_DYNACONF=/home/travis/build/rochacbruno/dynaconf/.env
- DYNATRAVIS_ENV_BOOLEAN='@bool true'
- DYNATRAVIS_ENV_INT='@int 42'
- DYNATRAVIS_ENV_FLOAT='@float 42.2'
- DYNATRAVIS_ENV_LIST='@json ["dyna", "conf"]'
# - DYNATRAVIS_ENV_DICT='@json {"dyna": "conf"}' how to fix this?
- DYNATRAVIS_ENV_DICT='@json {}'
- DYNATRAVIS_ENV_PURE_INT=42
- OTHER_TESTING='@bool yes'
before_script:
- sleep 5
python:
- "3.6"
install:
- "pip install --upgrade pip"
- "pip install --upgrade -r requirements_dev.txt"
script:
- make test_examples
- make test
after_success:
- coveralls
jobs:
include:
- stage: tests
language: python
python: 3.6
services:
- redis-server
env:
- DYNACONF_SETTINGS=dynaconf.test_settings
- DOTENV_PATH_FOR_DYNACONF=/home/travis/build/rochacbruno/dynaconf/.env
- DYNATRAVIS_ENV_BOOLEAN='@bool true'
- DYNATRAVIS_ENV_INT='@int 42'
- DYNATRAVIS_ENV_FLOAT='@float 42.2'
- DYNATRAVIS_ENV_LIST='@json ["dyna", "conf"]'
# - DYNATRAVIS_ENV_DICT='@json {"dyna": "conf"}' how to fix this?
- DYNATRAVIS_ENV_DICT='@json {}'
- DYNATRAVIS_ENV_PURE_INT=42
- OTHER_TESTING='@bool yes'
before_script:
- sleep 5
install:
- "pip install --upgrade pip"
- "pip install --upgrade -r requirements_dev.txt"
script: make test
after_success:
- coveralls
- stage: test_examples
language: python
python: 3.6
before_script:
- sleep 5
install:
- "pip install --upgrade pip"
- "pip install --upgrade -r requirements_dev.txt"
script: make test_examples
after_success:
- coveralls
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -4,4 +4,4 @@ envlist = py36
[testenv]
deps = -rrequirements_dev.txt
commands =
py.test -v --cov=dynaconf -l --tb=short --maxfail=1 tests/
py.test --boxed -v --cov=dynaconf -l --tb=short --maxfail=1 tests/

0 comments on commit 1882c57

Please sign in to comment.