2015-12-21 23:48:52 +05:30
|
|
|
sudo: required
|
|
|
|
services:
|
2016-05-04 17:47:03 +05:30
|
|
|
- docker
|
2015-12-21 23:48:52 +05:30
|
|
|
|
2015-12-21 19:23:31 +05:30
|
|
|
language: go
|
2015-12-22 04:16:17 +05:30
|
|
|
|
2015-12-21 23:48:52 +05:30
|
|
|
go:
|
2016-06-03 23:25:47 +05:30
|
|
|
- 1.5.4
|
|
|
|
- 1.6.2
|
|
|
|
- tip
|
2015-12-21 23:48:52 +05:30
|
|
|
|
|
|
|
env:
|
|
|
|
- DEX_TEST_DSN="postgres://postgres@127.0.0.1:15432/postgres?sslmode=disable" ISOLATED=true
|
2016-02-26 01:27:26 +05:30
|
|
|
DEX_TEST_LDAP_HOST="tlstest.local:1389"
|
2016-06-22 05:11:04 +05:30
|
|
|
DEX_TEST_LDAPS_HOST="tlstest.local:1636"
|
2016-02-26 01:27:26 +05:30
|
|
|
DEX_TEST_LDAP_BINDNAME="cn=admin,dc=example,dc=org"
|
|
|
|
DEX_TEST_LDAP_BINDPASS="admin"
|
2015-12-21 23:48:52 +05:30
|
|
|
|
|
|
|
install:
|
2016-01-20 00:52:46 +05:30
|
|
|
- go get golang.org/x/tools/cmd/cover
|
|
|
|
- docker pull quay.io/coreos/postgres
|
2015-11-11 01:08:40 +05:30
|
|
|
- docker pull osixia/openldap
|
2015-12-21 19:23:31 +05:30
|
|
|
|
|
|
|
script:
|
2016-01-20 00:52:46 +05:30
|
|
|
- docker run -d -p 127.0.0.1:15432:5432 quay.io/coreos/postgres
|
2015-11-11 01:08:40 +05:30
|
|
|
- LDAPCONTAINER=`docker run -e LDAP_TLS_PROTOCOL_MIN=3.0 -e LDAP_TLS_CIPHER_SUITE=NORMAL -d -p 127.0.0.1:1389:389 -p 127.0.0.1:1636:636 -h tlstest.local osixia/openldap`
|
2016-02-13 04:41:14 +05:30
|
|
|
- ./build
|
2016-01-20 00:52:46 +05:30
|
|
|
- ./test
|
2015-11-11 01:08:40 +05:30
|
|
|
- docker cp ${LDAPCONTAINER}:container/service/:cfssl/assets/default-ca/default-ca.pem /tmp/openldap-ca.pem
|
|
|
|
- docker cp ${LDAPCONTAINER}:container/service/slapd/assets/certs/ldap.key /tmp/ldap.key
|
|
|
|
- chmod 644 /tmp/ldap.key
|
|
|
|
- docker cp ${LDAPCONTAINER}:container/service/slapd/assets/certs/ldap.crt /tmp/ldap.crt
|
|
|
|
- sudo sh -c 'echo "127.0.0.1 tlstest.local" >> /etc/hosts'
|
2016-01-20 00:52:46 +05:30
|
|
|
- ./test-functional
|
2016-02-09 05:31:44 +05:30
|
|
|
- DEX_TEST_DSN="sqlite3://:memory:" ./test-functional
|
2016-08-02 03:44:01 +05:30
|
|
|
- ./build-docker
|
2015-12-21 19:23:31 +05:30
|
|
|
|
2016-01-20 00:52:46 +05:30
|
|
|
deploy:
|
|
|
|
provider: script
|
2016-08-02 03:04:36 +05:30
|
|
|
script: scripts/deploy
|
2016-01-20 00:52:46 +05:30
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
branch: master
|
2016-06-28 05:02:23 +05:30
|
|
|
go: '1.6.2'
|
2016-01-20 00:52:46 +05:30
|
|
|
condition: "$TRAVIS_PULL_REQUEST = false"
|
2015-12-22 04:16:17 +05:30
|
|
|
|
2015-12-21 19:23:31 +05:30
|
|
|
notifications:
|
|
|
|
email: false
|
2016-06-03 23:25:47 +05:30
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|