c89a0a5f3a
Prepare framework for testing tls-tris as client against other servers. Currently only boringssl is implemented, but the idea is to add support for others too (NSS, OpenSSL, picotls, tris, ...). To test multiple certificate types, copy ecdsa.pem and rsa.pem from tris-localserver for boringssl. The boringssl image is reused for the server since the binaries were built anyway. Revision is bumped to something to fix a build error and make the -loop and -www options work.
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
sudo: required
|
|
language: go
|
|
|
|
services:
|
|
- docker
|
|
|
|
go:
|
|
- 1.7
|
|
|
|
env:
|
|
- MODE=interop CLIENT=boring SERVER=boring
|
|
- MODE=interop CLIENT=tstclnt
|
|
- MODE=interop CLIENT=picotls ZRTT=1
|
|
- MODE=interop CLIENT=mint
|
|
- MODE=bogo
|
|
- MODE=gotest
|
|
- MODE=interop CLIENT=tstclnt ZRTT=1
|
|
- MODE=interop CLIENT=boring REVISION=origin/master
|
|
- MODE=interop CLIENT=tstclnt REVISION=default ZRTT=1
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
- env: MODE=interop CLIENT=boring REVISION=origin/master
|
|
- env: MODE=interop CLIENT=tstclnt REVISION=default ZRTT=1
|
|
- env: MODE=interop CLIENT=tstclnt ZRTT=1 # crashes on close_notify in 0.5RTT
|
|
|
|
install:
|
|
- if [ "$MODE" = "interop" ]; then ./_dev/tris-localserver/start.sh -d && docker ps -a; fi
|
|
- if [ "$MODE" = "interop" ]; then ./_dev/interop.sh INSTALL $CLIENT $REVISION; fi
|
|
- if [ -n "$SERVER" -a "$CLIENT" != "$SERVER" ]; then ./_dev/interop.sh INSTALL $SERVER $REVISION; fi
|
|
- if [ -n "$SERVER" ]; then ./_dev/interop.sh INSTALL-CLIENT; fi
|
|
|
|
script:
|
|
- if [ "$MODE" = "interop" ]; then ./_dev/interop.sh RUN $CLIENT; fi
|
|
- if [ "$MODE" = "interop" ] && [ "$ZRTT" = "1" ]; then ./_dev/interop.sh 0-RTT $CLIENT; fi
|
|
- if [ -n "$SERVER" ]; then ./_dev/interop.sh RUN-CLIENT $SERVER; fi
|
|
- if [ "$MODE" = "gotest" ]; then ./_dev/go.sh test -race crypto/tls; fi
|
|
- if [ "$MODE" = "bogo" ]; then ./_dev/bogo.sh; fi
|
|
|
|
after_script:
|
|
- if [ "$MODE" = "interop" ]; then docker ps -a; docker logs tris-localserver; fi
|
|
|
|
cache:
|
|
directories:
|
|
- _dev/GOROOT
|
|
- _dev/go
|