-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
99 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
dependencies: | ||
cache_directories: | ||
- ../.m2/repository | ||
|
||
pre: | ||
- sh -ex misc/ci-setup.sh | ||
|
||
## Customize test commands | ||
test: | ||
override: | ||
- sh -ex misc/ci-runtest.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
# | ||
# This script uses iprange from https://github.com/firehol/iprange | ||
# in order to optimize resulting list. E.g. if the original SPF records | ||
# would result (after calling despf.sh) in | ||
# ip4:13.111.0.0/24 | ||
# ip4:13.111.1.0/24 | ||
# ip4:13.111.2.0/24 | ||
# ip4:13.111.3.0/24 | ||
# | ||
# then if such result is piped into this script it will print just | ||
# ip4:13.111.0.0/22 | ||
# | ||
# Thanks to @bakerjalexander for suggestion! | ||
# | ||
# Usage: despf.sh <domain> | iprange.sh | ||
|
||
TMP=/tmp/iprange | ||
|
||
type iprange > /dev/null | ||
if [ $? -ne 0 ] ; then | ||
cat | ||
exit | ||
fi | ||
cat > $TMP | ||
grep -v ^ip4: $TMP > $TMP-rest | ||
grep ^ip4: $TMP | cut -d: -f2- | iprange | while read l; do echo "ip4:$l"; done | ||
cat $TMP-rest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
language: none | ||
|
||
build: | ||
ci: | ||
- misc/ci-setup.sh | ||
- misc/ci-runtest.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,5 +56,5 @@ grep "^ip6:" $tmpfile.orig | |
grep -v "^ip[46]:" $tmpfile.orig | ||
|
||
if [ $? -eq 1 ]; then | ||
return 0 | ||
exit 0 | ||
fi |