From d4a1e75ae16630e037e6901fe822bd2f1481c234 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 30 May 2018 22:45:15 +0800 Subject: [PATCH] run integration tests on CircleCI, disable Chrome tests on Travis --- .circleci/config.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++ .circleci/script.sh | 1 + .travis/script.sh | 2 +- 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 .circleci/config.yml create mode 100755 .circleci/script.sh diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..dba72dc9 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,53 @@ +defaults: &defaults + working_directory: /go/src/github.com/marten-seemann/quic-go + steps: + - checkout + - run: + name: "Setup build environment" + command: | + go get -t ./... + go get github.com/onsi/ginkgo/ginkgo + go get github.com/onsi/gomega + echo 127.0.0.1 quic.clemente.io | sudo tee -a /etc/hosts + - run: + name: "Build infos" + command: | + echo $GOARCH + go version + google-chrome --version + printf "quic.clemente.io certificate valid until: " && openssl x509 -in example/fullchain.pem -enddate -noout | cut -d = -f 2 + - run: + name: "Run benchmark tests" + command: ginkgo -randomizeAllSpecs -trace benchmark -- -samples=1 + - run: + name: "Run benchmark tests with race detector" + command: ginkgo -race -randomizeAllSpecs -trace benchmark -- -samples=1 -size=10 + - run: + name: "Run tools tests" + command: ginkgo -r -v -randomizeAllSpecs -trace integrationtests/tools + - run: + name: "Run Chrome integration tests" + command: ginkgo -v -randomizeAllSpecs -trace integrationtests/chrome + - run: + name: "Run integration tests using the gQUIC toy server / client" + command: ginkgo -v -randomizeAllSpecs -trace integrationtests/gquic + - run: + name: "Run self integration tests" + command: ginkgo -v -randomizeAllSpecs -trace integrationtests/self + +version: 2 +jobs: + build-go1.10: + docker: + - image: circleci/golang:1.10.2-stretch-browsers + <<: *defaults + build-go1.9: + docker: + - image: circleci/golang:1.9.6-stretch-browsers + <<: *defaults +workflows: + version: 2 + build: + jobs: + - build-go1.9 + - build-go1.10 diff --git a/.circleci/script.sh b/.circleci/script.sh new file mode 100755 index 00000000..6074ed2a --- /dev/null +++ b/.circleci/script.sh @@ -0,0 +1 @@ +google-chrome --version diff --git a/.travis/script.sh b/.travis/script.sh index 96774807..1836087a 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -22,5 +22,5 @@ if [ ${TESTMODE} == "integration" ]; then ginkgo -race -randomizeAllSpecs -randomizeSuites -trace benchmark -- -samples=1 -size=10 fi # run integration tests - ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests + ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests -skipPackage chrome fi