forked from jlu5/SupyPlugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (33 loc) · 973 Bytes
/
.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
dist: xenial
sudo: false
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
addons:
apt:
packages:
# For SysDNS tests
- unbound-host
install:
- pip install -vr requirements.txt
# Some plugins use external APIs, and can cause tests to fail due to them being slow/down.
# --no-network disables these, and we can still allow tests that have network access to fail.
env:
- TEST_ARGS="--no-network"
- TEST_ARGS=""
script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo "Skipping tests that require secret API keys"; export SKIP_PLUGINS=("--exclude=./LastFM" "--exclude=./NuWeather" "--exclude=./AQI"); fi'
- export SYSDNS_HOST_COMMAND="/usr/bin/unbound-host"
- supybot-test -c --plugins-dir=. $TEST_ARGS ${SKIP_PLUGINS[@]} --exclude=./Weather --exclude=./FML
notifications:
email: false
matrix:
allow_failures:
- env: TEST_ARGS=""
branches:
except:
- /^archive(-|\/).*$/
- /^wip\/.*$/