forked from ansible-community/molecule-azure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (66 loc) · 1.5 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
---
version: ~> 1.0
conditions: v1
dist: xenial
# Config file for automatic testing at travis-ci.org
services:
- docker
language: python
branches:
only:
- master
# https://stackoverflow.com/q/37972029/99834
- /^(\d+!)?(\d+)(\.\d+)+([\.\-\_])?((a(lpha)?|b(eta)?|c|r(c|ev)?|pre(view)?)\d*)?(\.?(post|dev)\d*)?$/
cache:
- pip
- directories:
- "node_modules"
- $HOME/.cache
os:
- linux
before_install:
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then python -m pip install --user tox tox-pyenv; else python -m pip install tox tox-pyenv; fi
jobs:
fast_finish: true
include:
- name: lint,py37,distros
env: TOXENV=lint,py37,distros
python: "3.7"
- name: py35
python: "3.5"
env: TOXENV=py35
- name: py36
python: "3.6"
env: TOXENV=py36
- name: py38
python: "3.8"
env: TOXENV=py38
- name: py27
python: "2.7"
env: TOXENV=py27
- name: devel
python: "3.7"
env: TOXENV=devel
- stage: deploy
name: deploy
if: tag IS present AND type != cron
addons: {}
services: []
env: TOXENV=upload
script:
# https://github.com/travis-ci/travis-ci/issues/4190#issuecomment-353342526
- while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done &
- python -m tox
- kill %1
env:
global:
- PIP_DISABLE_PIP_VERSION_CHECK=1
before_cache:
- rm -rf $HOME/.cache/pip/log
addons:
apt:
packages:
- lxc
- lxc-dev
- lxd
- lxd-client