2016-08-19 04:04:41 +05:30
|
|
|
language: go
|
|
|
|
|
2017-04-11 03:35:10 +05:30
|
|
|
sudo: required
|
|
|
|
|
2019-07-12 19:59:46 +05:30
|
|
|
dist: xenial
|
|
|
|
|
2019-02-09 18:12:43 +05:30
|
|
|
matrix:
|
|
|
|
include:
|
2019-12-04 15:16:53 +05:30
|
|
|
- go: '1.13.x'
|
2019-02-09 18:12:43 +05:30
|
|
|
|
|
|
|
env:
|
2019-07-12 19:59:46 +05:30
|
|
|
global:
|
|
|
|
- DEX_MYSQL_DATABASE=dex
|
|
|
|
- DEX_MYSQL_USER=root
|
|
|
|
- DEX_MYSQL_HOST="localhost"
|
|
|
|
- DEX_MYSQL_PASSWORD=""
|
|
|
|
- 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
|
|
|
|
- DEX_KEYSTONE_URL=http://localhost:5000
|
|
|
|
- DEX_KEYSTONE_ADMIN_URL=http://localhost:35357
|
|
|
|
- DEX_KEYSTONE_ADMIN_USER=demo
|
|
|
|
- DEX_KEYSTONE_ADMIN_PASS=DEMO_PASS
|
2016-08-19 04:04:41 +05:30
|
|
|
|
2018-09-03 12:14:44 +05:30
|
|
|
go_import_path: github.com/dexidp/dex
|
2017-11-06 19:53:25 +05:30
|
|
|
|
2016-09-23 11:53:56 +05:30
|
|
|
services:
|
2019-07-12 19:59:46 +05:30
|
|
|
- mysql
|
2016-09-23 11:53:56 +05:30
|
|
|
- postgresql
|
2017-09-20 04:01:58 +05:30
|
|
|
- docker
|
2016-09-23 11:53:56 +05:30
|
|
|
|
2019-07-12 19:59:46 +05:30
|
|
|
before_install:
|
|
|
|
- mysql -e 'CREATE DATABASE dex;'
|
|
|
|
|
2016-08-19 04:04:41 +05:30
|
|
|
install:
|
2017-04-11 03:35:10 +05:30
|
|
|
- sudo -E apt-get install -y --force-yes slapd time ldap-utils
|
|
|
|
- sudo /etc/init.d/slapd stop
|
2017-11-06 19:53:25 +05:30
|
|
|
- docker run -d --net=host gcr.io/etcd-development/etcd:v3.2.9
|
2018-12-20 21:55:22 +05:30
|
|
|
- docker run -d -p 0.0.0.0:5000:5000 -p 0.0.0.0:35357:35357 openio/openstack-keystone:pike
|
|
|
|
- |
|
|
|
|
until curl --fail http://localhost:5000/v3; do
|
|
|
|
echo 'Waiting for keystone...'
|
|
|
|
sleep 1;
|
|
|
|
done;
|
2016-08-19 04:04:41 +05:30
|
|
|
|
|
|
|
script:
|
|
|
|
- make testall
|
2017-09-20 04:01:58 +05:30
|
|
|
- ./scripts/test-k8s.sh
|
2017-12-01 06:10:42 +05:30
|
|
|
- make verify-proto # Ensure proto generation doesn't depend on external packages.
|
2016-08-19 04:04:41 +05:30
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|