Skip to content

Commit 9eb8f27

Browse files
authored
Enable Travis CI IPv6 loopback network for testing (#15)
Enable ipv6 using sysctl
1 parent 5064a15 commit 9eb8f27

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: c
22

3-
sudo: false
3+
dist: trusty
4+
sudo: required
45

56
os:
67
- linux
@@ -39,13 +40,14 @@ matrix:
3940
after_success: echo "Skip report coverage"
4041

4142
before_install:
43+
- source ./ci/before_install_${TRAVIS_OS_NAME}.sh
4244
- source ./ci/coveralls/before_install_${TRAVIS_OS_NAME}.sh
4345
- pip install --user codecov
4446

4547
script:
4648
- make CC="$CC --coverage"
4749
- file ./newlisp && ./newlisp -v
48-
- make testall
50+
- make checkall
4951

5052
after_success:
5153
- coveralls --exclude util

ci/before_install_linux.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
## Enable ipv6 loopback only for testing
3+
# sudo /sbin/sysctl -w net.ipv6.conf.all.disable_ipv6=0
4+
# sudo /sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=0
5+
sudo /sbin/sysctl -w net.ipv6.conf.lo.disable_ipv6=0
6+
ip addr

ci/before_install_osx.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
# NOOP

0 commit comments

Comments
 (0)