Skip to content

Commit 9bee232

Browse files
author
Sebastian Wagner
committed
DEV,PKG: Update debian rules, travis
and add changelog entry for the PR
1 parent 72c8e4c commit 9bee232

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
env: mode=debian
1616
- python: 3.8
1717
env: mode=codestyle
18+
- python: 3.8
19+
env: mode=documentation
1820
before_install:
1921
- if [[ -v requirements ]]; then curl -s -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.1-amd64.deb; fi
2022
- if [[ -v requirements ]]; then sudo dpkg -i --force-confnew elasticsearch-7.6.1-amd64.deb; fi
@@ -30,9 +32,9 @@ install:
3032
- if [[ -v requirements ]]; then pip install Cerberus!=1.3 codecov pyyaml requests_mock; fi
3133
- if [[ $mode == codestyle ]]; then pip install pycodestyle; fi
3234
- if [[ -v requirements ]]; then sudo sed -i '/^Defaults\tsecure_path.*$/ d' /etc/sudoers; fi
33-
- if [[ $TRAVIS_PYTHON_VERSION < '3.6' ]]; then rm intelmq/bin/intelmq_gen_docs.py intelmq/tests/bin/test_gen_docs.py; fi # file requires Python 3.6
3435
- if [[ -v requirements ]]; then sudo pip install .; fi
3536
- if [[ -v requirements ]]; then sudo intelmqsetup --skip-ownership; fi
37+
- if [[ $mode == documentation ]]; then pip install -r docs/requirements.txt; fi
3638
before_script:
3739
- if [[ $requirements == true ]] ; then psql -c "CREATE USER intelmq WITH SUPERUSER" -U postgres; fi
3840
- if [[ $requirements == true ]] ; then psql -c "CREATE DATABASE intelmq" -U intelmq template1; fi
@@ -57,6 +59,9 @@ script:
5759
- if [[ $mode == debian ]]; then pushd ../build; fi
5860
- if [[ $mode == debian ]]; then DEB_BUILD_OPTIONS='nocheck' dpkg-buildpackage -us -uc -d; fi
5961
- if [[ $mode == debian ]]; then popd; fi
62+
- if [[ $mode == documentation ]]; then pushd docs; fi
63+
- if [[ $mode == documentation ]]; then make html; fi
64+
- if [[ $mode == documentation ]]; then popd; fi
6065
services:
6166
- redis
6267
- postgresql

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ CHANGELOG
7979
- Updated documentation for Maxmind GeoIP, ASN Lookup, TOR Nodes and Recorded Future experts to reflect new `--update-database` option. (PR#1524 by Filip Pokorný)
8080
- Add n6 Integration documentation.
8181
- Moved 'Orphaned Queues' section from the FAQ to the intelmqctl documentation.
82+
- Generate documentation using Sphinx (PR#1622 by Birger Schacht).
8283

8384
### Packaging
8485

debian/rules

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ override_dh_auto_build:
3232

3333
override_dh_auto_install: $(BOTDOCS)
3434
rm intelmq/bin/rewrite_config_files.py
35-
rm intelmq/bin/intelmq_gen_docs.py intelmq/tests/bin/test_gen_docs.py
3635
sed -i -e '/#!\/usr\/bin\//d' intelmq/bin/*.py
37-
sed -i -f debian/sedfile intelmq/bots/BOTS intelmq/etc/* docs/intelmqctl.md docs/Bots.md setup.py contrib/logrotate/intelmq
36+
sed -i -f debian/sedfile intelmq/bots/BOTS intelmq/etc/* docs/guides/intelmqctl.md docs/guides/Bots.md setup.py contrib/logrotate/intelmq
3837
python3 setup.py install --root=debian/intelmq --prefix=/usr
3938
# these are already in /usr/bin/
4039
#rm %{buildroot}/%{python3_sitelib}/intelmq/bots/experts/maxmind_geoip/update-geoip-data

0 commit comments

Comments
 (0)