diff --git a/.travis.yml b/.travis.yml index 663251568..eb9d9eb5e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,6 +44,7 @@ install: script: - ./test - bash integration/consul/test.sh + - bash integration/env/test.sh - bash integration/etcd/test.sh - bash integration/redis/test.sh - bash integration/rancher/test.sh diff --git a/integration/env/test.sh b/integration/env/test.sh new file mode 100644 index 000000000..61a22c71a --- /dev/null +++ b/integration/env/test.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +export KEY="foobar" +export DATABASE_HOST="127.0.0.1" +export DATABASE_PASSWORD="p@sSw0rd" +export DATABASE_PORT="3306" +export DATABASE_USERNAME="confd" +export UPSTREAM_APP1="10.0.1.10:8080" +export UPSTREAM_APP2="10.0.1.11:8080" +export PREFIX_DATABASE_HOST="127.0.0.1" +export PREFIX_DATABASE_PASSWORD="p@sSw0rd" +export PREFIX_DATABASE_PORT="3306" +export PREFIX_DATABASE_USERNAME="confd" +export PREFIX_UPSTREAM_APP1="10.0.1.10:8080" +export PREFIX_UPSTREAM_APP2="10.0.1.11:8080" + +confd --onetime --log-level debug --confdir ./integration/confdir --interval 5 --backend env