-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
168 lines (159 loc) · 7.89 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
dist: bionic
language: generic
cache:
#pip: true
directories:
- "$HOME/db/"
env:
global:
- GIT_NAME: 'spirillen'
- GIT_EMAIL: '[email protected]'
- TRAVIS_REPO_SLUG: "${TRAVIS_REPO_SLUG}"
- GIT_BRANCH: $"{TRAVIS_BRANCH}"
- TZ: UTC
# Variables info: https://pyfunceble.readthedocs.io/en/dev/components/environment-variables.html#what-do-we-use-and-why
- PYFUNCEBLE_CONFIG_DIR: "${TRAVIS_BUILD_DIR}/.pyfunceble/"
- PYFUNCEBLE_OUTPUT_LOCATION: "${TRAVIS_BUILD_DIR}/active_domains/"
- PYFUNCEBLE_AUTO_CONFIGURATION: yes
- PYFUNCEBLE_DB_CHARSET="${DB_CHARSET}"
- PYFUNCEBLE_DB_HOST="${DB_HOST}"
- PYFUNCEBLE_DB_NAME="${DB_NAME}"
- PYFUNCEBLE_DB_USERNAME="${DB_USERNAME}"
- PYFUNCEBLE_DB_PASSWORD="${DB_PASSWORD}"
- PYFUNCEBLE_DB_PORT="${DB_PORT}"
#- PYFUNCEBLE_DEBUG: true
#- PYFUNCEBLE_DEBUG_ON_SCREEN: true
- PYTHON_VERSION: 3.8.5
addons:
#mariadb: '10.5'
apt:
packages:
- dos2unix
- msttcorefonts
- lsof
- gosu
install:
#- sudo bash "${TRAVIS_BUILD_DIR}/travissetup_recursor.sh"
- wget -q 'https://raw.githubusercontent.com/dns-test/script-hub/master/recursor/setup_recursor.sh' -O "$HOME/setup_recursor.sh" && sudo bash "$HOME/setup_recursor.sh"
- export PATH="${HOME}/miniconda/bin:${PATH}"
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
- bash miniconda.sh -b -p ${HOME}/miniconda
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda update -q conda
- conda create -q -n test-environment python="${PYTHON_VERSION}"
- source activate test-environment
- python --version --version
- pip --version
- conda --version
#- pip -q install --no-cache-dir -U PyFunceble-dev
#- pip -q install --no-cache-dir -U ultimate-hosts-blacklist-whitelist-dev
- pip -q install --no-cache-dir -U git+https://github.com/funilrys/PyFunceble@dev ultimate-hosts-blacklist-whitelist-dev dnspython[dnssec,idna]
- pyfunceble --version
git:
depth: 2
jobs:
include:
- stage: "Validation test"
language: generic
os: linux
dist: focal
name: "Testing: adult.domains.list"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: adult.hosts.list"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: adult.mobile.list"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: adult.rpz-ip"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: adult.snuff.list"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: adult.white.list"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: adult.wildcard.list"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: adult.wildcard.rpz-nsdname"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: strict.domains.list"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: strict.hosts.list"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: strict.rpz-ip"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: strict.white.list"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: strict.wildcard.list"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
- language: generic
os: linux
dist: focal
name: "Testing: strict.wildcard.rpz-nsdname"
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'
#script:
# - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/PrepareData.sh" && bash "${TRAVIS_BUILD_DIR}/travis/DataTesting.sh"; fi'
# - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "${TRAVIS_BUILD_DIR}/travis/run_on_pull_requests"; fi'