2016-11-03 21:13:18 +00:00
|
|
|
sudo: required
|
|
|
|
language: go
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
go:
|
2018-03-21 16:19:14 +00:00
|
|
|
- 1.10.x
|
2016-11-03 21:13:18 +00:00
|
|
|
|
|
|
|
env:
|
2018-02-14 07:27:33 +00:00
|
|
|
# CLIAUTH is used for client authentication testing. If string contains letter:
|
|
|
|
# - "C" - tris client will be tested against $SERVER
|
|
|
|
# - "S" - tris server will be tested against $CLIENT
|
|
|
|
# - none of them, client authentication is not tested
|
|
|
|
- MODE=interop CLIENT=boring SERVER=boring CLIAUTH=C # ClientAuth. CLIENT: tris, SERVER: boringssl
|
|
|
|
- MODE=interop CLIENT=tstclnt SERVER=tstclnt CLIAUTH=NONE
|
2016-11-26 05:50:26 +00:00
|
|
|
- MODE=interop CLIENT=picotls ZRTT=1
|
2017-11-14 15:43:14 +00:00
|
|
|
# - MODE=interop CLIENT=mint # does not support draft 22
|
2017-01-18 18:59:59 +00:00
|
|
|
- MODE=bogo
|
2016-11-21 22:25:27 +00:00
|
|
|
- MODE=gotest
|
2016-12-05 18:00:53 +00:00
|
|
|
- MODE=interop CLIENT=tstclnt ZRTT=1
|
2016-11-21 22:25:27 +00:00
|
|
|
- MODE=interop CLIENT=boring REVISION=origin/master
|
2016-11-26 05:50:26 +00:00
|
|
|
- MODE=interop CLIENT=tstclnt REVISION=default ZRTT=1
|
2016-11-03 21:13:18 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- env: MODE=interop CLIENT=boring REVISION=origin/master
|
2018-02-08 15:26:04 +00:00
|
|
|
- env: MODE=interop CLIENT=tstclnt REVISION=default ZRTT=1
|
2016-11-03 21:13:18 +00:00
|
|
|
|
|
|
|
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
|
2017-08-31 15:03:22 +01:00
|
|
|
- if [ -n "$SERVER" -a "$CLIENT" != "$SERVER" ]; then ./_dev/interop.sh INSTALL $SERVER $REVISION; fi
|
|
|
|
- if [ -n "$SERVER" ]; then ./_dev/interop.sh INSTALL-CLIENT; fi
|
2016-11-03 21:13:18 +00:00
|
|
|
|
|
|
|
script:
|
2016-11-25 21:46:50 +00:00
|
|
|
- if [ "$MODE" = "interop" ]; then ./_dev/interop.sh RUN $CLIENT; fi
|
2016-11-26 05:50:26 +00:00
|
|
|
- if [ "$MODE" = "interop" ] && [ "$ZRTT" = "1" ]; then ./_dev/interop.sh 0-RTT $CLIENT; fi
|
2018-02-14 07:27:33 +00:00
|
|
|
- if [ -n "$SERVER" ]; then ./_dev/interop.sh RUN-CLIENT $SERVER $CLIAUTH; fi
|
2016-11-23 03:23:34 +00:00
|
|
|
- if [ "$MODE" = "gotest" ]; then ./_dev/go.sh test -race crypto/tls; fi
|
2017-01-18 18:59:59 +00:00
|
|
|
- if [ "$MODE" = "bogo" ]; then ./_dev/bogo.sh; fi
|
2016-11-03 21:13:18 +00:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- if [ "$MODE" = "interop" ]; then docker ps -a; docker logs tris-localserver; fi
|