2015-12-21 23:48:52 +05:30
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
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-01-20 00:52:46 +05:30
|
|
|
- 1.4.3
|
|
|
|
- 1.5.3
|
2015-12-21 23:48:52 +05:30
|
|
|
|
|
|
|
env:
|
|
|
|
- DEX_TEST_DSN="postgres://postgres@127.0.0.1:15432/postgres?sslmode=disable" ISOLATED=true
|
2015-11-11 01:08:40 +05:30
|
|
|
DEX_TEST_LDAP_URI="ldap://tlstest.local:1389/????bindname=cn%3Dadmin%2Cdc%3Dexample%2Cdc%3Dorg,X-BINDPW=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
|
|
|
|
- go get golang.org/x/tools/cmd/vet
|
|
|
|
- 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-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
|
2015-12-21 19:23:31 +05:30
|
|
|
|
2016-01-20 00:52:46 +05:30
|
|
|
deploy:
|
|
|
|
provider: script
|
2016-01-20 14:02:41 +05:30
|
|
|
script: "./build-docker-push"
|
2016-01-20 00:52:46 +05:30
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
go: '1.5.3'
|
|
|
|
condition: "$TRAVIS_PULL_REQUEST = false"
|
2015-12-22 04:16:17 +05:30
|
|
|
|
2015-12-21 19:23:31 +05:30
|
|
|
notifications:
|
|
|
|
email: false
|