-
Notifications
You must be signed in to change notification settings - Fork 230
/
.travis.yml
79 lines (78 loc) · 6.25 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
sudo: true
dist: trusty
language: python
cache: pip
notifications:
email: false
python:
- "3.6.6"
- "3.6.7"
install:
- pip install -r requirements.txt
env:
global:
- CONSUMER_KEY=X
- CONSUMER_SECRET=X
- ACCESS_TOKEN=X-X
- ACCESS_TOKEN_SECRET=X
- TWITTER_ID=3065618342
# - DOCKER_USERNAME=nntin
# - DOCKER_IMAGE_NAME=nntin/discord-twitter-bot
script:
- tox -e py36
jobs:
include:
- stage: stylecheck
python: 3.6.6
script: black --check --diff -l 99 -N `git ls-files "*.py"`
- stage: additional tests
script: echo "Running additional tests"
python: 3.6.6
env: # CONSUMER_KEY, CONSUMER_KEY, ACCESS_TOKEN, ACCESS_TOKEN_SECRET, WEBHOOK_URL
- secure: "CsSClbyk9eA7NJmcoEU2cbtKFQ9ZxGClBM6rYA36E65gfVbZG4AWEV/3l3Yr2Z+Ta5sRDwJPm9IVTPGs7xTwyqL2A4sMoYbIVs1IRESG3enhUyteSxyvkrFHC2AR4HVGJmdtHijS+Z6OQcPhbhKU6uLzAoPyMJOj/QT3h/5lr9PH96dyGVAcbCSfAxCPG8NI4hZbWLgT2OiKuEvTVW5sI9vorN6+52TaLLztrLwNc6h82cXuvneGbGVtzQRyJ1A5juFefNPY1X7E85B8GOI+9RYvHG/jW5tAWTiM6QQuSEucYSDRczp2AKR5zQUjGBNMsLNcjBTUja84/Ws8qUAlb6LdsnZp8Eiqcry6pOLEZwBQcqXSzvd3MAtdpl3xsMOlVTeBJmoM8v8T+aO1tPnSKY7UrYpl34HQOJjU2PxlK6iykQR3y+yFnLqEphB/fI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KmiXIawgxxV+3l4o7yZu/de1bXSMlfDgCvHqYthNnDpTAAoDL7V5Rmi4FWBd4aYA4+CUlFtPR4bVdm2lax2skplJxrmLAzx1ywVoUtE/7BBwvSuCAt3lRtdNYjy20582A65yQPj4EyMq/sUE="
- secure: "HnLit3lxI9G+jYnEy64ddM8GfkVlzcyV23oZ2G2dDQjbNZZ08iAt2y4PyHq7OqOh+eTFfIPgVIhWA5tgMlcXz3rAsRK8eWmyeCy7ij7W72IRngWgm2cCS24EA7TysKZ8pweLBYbcG8EBmpSnChIH4r+jsD6Iw2/rSfK6GJ4Cf0+yoNBwBU8eWMph837eETFV2KZ/WNJr3BiydHSp8J83fAKnup0lnDts6k+ra1qmFmtYAH2eZWafX1WlEn80ozg0WaW6K6UkQIiwwmib8leA1AvQPzkFuonZjfxWVczEDqohnAnYFXegK7DQ7sbw2aMDMyF9fDUMUiQjwswWivRd+CICSIeSYoOeKKjRXhuZqlsagZ31BWsl4WW4J7hxwIo2RQREL5lYU65VM5ATID24wd3nKK+sFFNf46fSWcb8iAkfrIh6AjXYhSeytWnKCIMNtsqId4270wmRB4ayyC4nwF6uJIRM956hHEIKpnypX+WJXbfskpig4HK64e7XJNGyoljjL7qe4cz4YTGxgBSS35aQwHMAMMvGzmAQ+XffHnlASiArL4ZM76uQR/qXa2Q/YE4KOvEU1NSCsl17NNrI50NBCJhYdSnY4mjsGG0PdVI0WoS9egiRE0bqjMT5OWwP4cAyIDrgCbNs+hChHTvjvghGVia769qi+e6k2TsdCGY="
deploy:
- provider: script
script: tox -e extended
on:
all_branches: true
repo: NNTin/discord-twitter-bot
# - stage: docker
# python: 3.6.6
# env:
# - secure: "Nwp138sYrukAR02hMCOMfKpvhRbPQbR7F91dmd6UPErFw23N0GMCTlz6c+qUuX8uNPum3yQQhZwFkggKBH2CCji62XAL3GtPr0o0evqlAi0jTHI60OvhTilgwFTc09Yt4NE7+HOWRZr+VKkOyAt1NwkqKHj1Cw5hnvnZUfSoqwZAfe/kZX4PCpDf6dhMvAvSZtrOg5A9IryWsTPQNPgO1C3kWNN1R40hF3idf2v7vNIFY2erRNRGDDAWwsJC/EG4k+wc8CgdS9LZU58RZAcNUKPsk2xix5SYBD2eMp2F2xouELhKGGDcrvuXgMC3QtoZfNxk2uQUvFroqfLMpI/tTiIj3GWbBq6nuzrorPhFw/IipVF4IaJHtU0rxA/SdsRR5CPjyX2RDIFq4WiQ+MhWJWQeBihFRg99dhdnlG04Qq0ct4h1ue/Ck0fzIRDqtoHdfmC7mNtL8O49YpDnWuXjdgytwYeylSLNvC0scFbhmeTo4gJVrvEq5CHTnsrHcZJQzfagSgh+EBBDOiFAt9AVLjRerfP3bpC/dPdGsW+HnYXDhIISIfBTR4T3pr/yE7v2cbICA3F4R9kU5S9OzyNO4PVVKP1ca66HgB31UjwxbQLb4NldYK7FxwRmjvsv8vmkILb7QkfJZV/hlen8NQF/wx2VfTwzLnIPDwKvNRzGkBw="
# before_script:
# - docker pull "$DOCKER_IMAGE_NAME" || true
# script:
# - docker build --pull --cache-from "$DOCKER_IMAGE_NAME" -t temp-image .
# after_script:
# - docker images
# before_deploy:
# - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
# - export DOCKER_TAG="$TRAVIS_BRANCH-${TRAVIS_COMMIT::8}"
# - docker tag temp-image "$DOCKER_IMAGE_NAME:$DOCKER_TAG"
# - docker tag temp-image "$DOCKER_IMAGE_NAME:$TRAVIS_BRANCH"
# - docker tag temp-image "$DOCKER_IMAGE_NAME:latest"
# deploy:
# - provider: script
# script: docker push "$DOCKER_IMAGE_NAME:$DOCKER_TAG" && docker push "$DOCKER_IMAGE_NAME:$TRAVIS_BRANCH"
# on:
# all_branches: true
# repo: NNTin/discord-twitter-bot
# - provider: script
# script: docker push "$DOCKER_IMAGE_NAME:latest"
# on:
# branch: master
# repo: NNTin/discord-twitter-bot
# - stage: docker test
# before_deploy:
# - export DOCKER_TAG="$TRAVIS_BRANCH-${TRAVIS_COMMIT::8}"
# deploy:
# - provider: script
# script: docker pull "$DOCKER_IMAGE_NAME:$DOCKER_TAG"
# on:
# all_branches: true
# repo: NNTin/discord-twitter-bot