forked from InstaPy/InstaPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (64 loc) · 2.15 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
dist: xenial
sudo: false
language: python
python: "3.7"
cache: pip
branches:
except:
- legacy
- experimental
install: pip install tox tox-venv
script: tox
stages:
- name: static analysis
- name: test
- name: pypi-prod
if: type = push AND fork = false AND tag =~ ^\d+\.\d+\.\d+
jobs:
fast_finish: true
include:
- stage: static analysis
env: TOXENV=black
python: "3.7"
- stage: static analysis
env: TOXENV=flake8
python: "3.7"
- stage: test
env: TOXENV=py34
python: "3.4"
- stage: test
env: TOXENV=py36
python: "3.6"
- stage: test
env: TOXENV=py37
python: "3.7"
- stage: pypi-prod
install: true
script: skip
deploy:
provider: pypi
user: InstaPy
password:
secure: YksWurLkvurfrbSpOkHFTouFg9NCEcl09GikX3v8lk5jXfY8D8TBIQfakck6dYKVFrjaIOxEPm7sqaYm0//oz91NLiSv4iBZL2mLdQ1n8+aQQ9uctoiKMcfBTMp4dDwdCxNqPV0Aco8NbcB6Se0oNd94H54ohA5Al5Z65ivDe3dka+zabeJMa0TO0SXVqY2KmMgFPLScZUqQqKl4HxxgDyWkw9onPz//T9r2u32C7LpP/x8joHQ1jeUlNZZRwkrMaIuOYmmkUZztkj+zBfPpaV4DPPjMAmjo0G9tGmc2pEIE1joUtw0OSpstpvvnchqI6YeMHZ9nITTIEa3fShoAcYmTsiWEeK5XPnmuMt0qdIvflNOi3Ck5vVo1DWzz/S3QyU9YejTZ8TNBOOGLZlrmyDTHpNyTUJB06Euw5Wos8wVxgtIdKLJ/1wvIC+d+n+0wnnhdESEG0lZo1dCbkGHRdJjfYADnu3sUZyDk/3ZrHQBXa/Qw2zB9bT1GLNQNmE32GkRe8Zr6S0H2LrdXggzoBNMZeyJ7qHXwoahsOtO+CeqHmlpaNYD5kstqXLPxIy9ZfOPFa1F2YQ0Kz7Hgdic42DlUcaLf4749EX80668XPAhs3H7LwRhboZuBj6hWgA7I0YQVDRNwJ/nN53fQBWIfoemJwxQ7PqKFiIpW9bbXyPk=
distributions: sdist bdist_wheel
on:
tags: true
repo: timgrossmann/InstaPy
branches:
only:
- master
after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $DISCORD_WEBHOOK
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $DISCORD_WEBHOOK
notifications:
email:
recipients:
on_success: change
on_failure: always