From fc1c60ed8f99b725879dcfe6684d6bc80252a38d Mon Sep 17 00:00:00 2001
From: Daniel Dao <dqminh89@gmail.com>
Date: Mon, 6 Nov 2017 14:23:25 +0000
Subject: [PATCH] add etcd to travis CI

This patch uses docker to run an etcd container in travis CI so we can
run storage/etcd conformance tests.
---
 .travis.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index b753040a..f16043bf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,17 +6,20 @@ go:
   - 1.8
   - 1.9
 
+go_import_path: github.com/coreos/dex
+
 services:
   - postgresql
+  - docker
 
 env:
-  - DEX_POSTGRES_DATABASE=postgres DEX_POSTGRES_USER=postgres DEX_POSTGRES_HOST="localhost" DEX_LDAP_TESTS=1 DEBIAN_FRONTEND=noninteractive
-
+  - DEX_POSTGRES_DATABASE=postgres DEX_POSTGRES_USER=postgres DEX_POSTGRES_HOST="localhost" DEX_ETCD_ENDPOINTS=http://localhost:2379 DEX_LDAP_TESTS=1 DEBIAN_FRONTEND=noninteractive
 
 install:
   - go get -u github.com/golang/lint/golint
   - sudo -E apt-get install -y --force-yes slapd time ldap-utils
   - sudo /etc/init.d/slapd stop
+  - docker run -d --net=host gcr.io/etcd-development/etcd:v3.2.9
 
 
 script:
-- 
GitLab