forked from dynaconf/dynaconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
154 lines (146 loc) · 4.95 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
jobs:
include:
- stage: Install and CLI test
language: python
python: "3.6"
install:
- "python setup.py install"
script:
- dynaconf init -v FOO=running_on_travis -y
- dynaconf write toml -v OTHERVALUE=Hello_Travis -y
- dynaconf list | grep -c running_on_travis
- dynaconf list | grep -c Hello_Travis
- dynaconf --version
- stage: Python 3.4
language: python
python: "3.4"
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
- DYNATRAVIS_ENV_STR_INT="'42'"
- OTHER_TESTING='@bool yes'
- OTHER_ENABLED=true
- OTHER_DISABLED=false
install:
- "pip install --upgrade pip"
- "pip install --upgrade -r requirements_dev.txt"
script: make test
- stage: Python 3.5
language: python
python: "3.5"
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
- DYNATRAVIS_ENV_STR_INT="'42'"
- OTHER_TESTING='@bool yes'
- OTHER_ENABLED=true
- OTHER_DISABLED=false
install:
- "pip install --upgrade pip"
- "pip install --upgrade -r requirements_dev.txt"
script: make test
# PYYAML IS BROKEN in 3.7 dev
# - stage: Python 3.7
# language: python
# python: "3.7-dev"
# 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
# - DYNATRAVIS_ENV_STR_INT="'42'"
# - OTHER_TESTING='@bool yes'
# - OTHER_ENABLED=true
# - OTHER_DISABLED=false
# install:
# - "pip install --upgrade pip"
# - "pip install --upgrade -r requirements_dev.txt"
# script: make test
- stage: Python 3.6 with coverage
language: python
python: "3.6"
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
- DYNATRAVIS_ENV_STR_INT="'42'"
- OTHER_TESTING='@bool yes'
- OTHER_ENABLED=true
- OTHER_DISABLED=false
before_script:
- sleep 5
install:
- "pip install --upgrade pip"
- "pip install --upgrade -r requirements_dev.txt"
script: make test
after_success:
- codecov
- stage: Examples and Frameworks
language: python
python: 3.6
env:
DEBUG_LEVEL_FOR_DYNACONF=DEBUG
install:
- "pip install --upgrade pip"
- "pip install --upgrade -r requirements_dev.txt"
script: make test_examples
- stage: Vault
language: python
services:
- docker
before_install:
- docker pull vault
- docker run -d -e 'VAULT_DEV_ROOT_TOKEN_ID=myroot' -p 8200:8200 vault
- docker ps -a
python: 3.6
env:
VAULT_ENABLED_FOR_DYNACONF=1
VAULT_TOKEN_FOR_DYNACONF=myroot
install:
- "pip install --upgrade pip"
- "pip install --upgrade -r requirements_dev.txt"
before_script:
- sleep 5
script: make test_vault
- stage: Redis
language: python
services:
- docker
before_install:
- docker pull redis
- docker run -d -p 6379:6379 redis
- docker ps -a
python: 3.6
env:
REDIS_ENABLED_FOR_DYNACONF=1
install:
- "pip install --upgrade pip"
- "pip install --upgrade -r requirements_dev.txt"
before_script:
- sleep 5
script: make test_redis