Skip to content

Enable Travis CI IPv6 loopback network for testing #15

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 4 commits into from
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: c

sudo: false
dist: trusty
sudo: required

os:
- linux
Expand Down Expand Up @@ -39,13 +40,14 @@ matrix:
after_success: echo "Skip report coverage"

before_install:
- source ./ci/before_install_${TRAVIS_OS_NAME}.sh
- source ./ci/coveralls/before_install_${TRAVIS_OS_NAME}.sh
- pip install --user codecov

script:
- make CC="$CC --coverage"
- file ./newlisp && ./newlisp -v
- make testall
- make checkall

after_success:
- coveralls --exclude util
Expand Down
6 changes: 6 additions & 0 deletions ci/before_install_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
## Enable ipv6 loopback only for testing
# sudo /sbin/sysctl -w net.ipv6.conf.all.disable_ipv6=0
# sudo /sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=0
sudo /sbin/sysctl -w net.ipv6.conf.lo.disable_ipv6=0
ip addr
2 changes: 2 additions & 0 deletions ci/before_install_osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
# NOOP