diff --git a/.travis.yml b/.travis.yml index bcf59329e95..0112e0a783b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,9 @@ go: go_import_path: github.com/ory-am/hydra +before_install: + - sudo apt-get install curl + install: - go get github.com/mattn/goveralls golang.org/x/tools/cmd/cover github.com/Masterminds/glide github.com/mitchellh/gox - git clone https://github.com/docker-library/official-images.git ~/official-images @@ -29,7 +32,13 @@ script: - docker run -d hydra-travis-ci - hydra host --dangerous-auto-logon --dangerous-force-http & - while ! echo exit | nc localhost 4444; do sleep 1; done - - ./run-e2e-test-suite.sh +# Test clients + - hydra clients create --id foobar + - hydra clients delete foobar +# Test token on arbitrary endpoints + - curl --header "Authorization: bearer $(hydra token client)" http://localhost:4444/clients +# Test token validation + - hydra token validate $(hydra token client) after_success: - |- diff --git a/run-e2e-test-suite.sh b/run-e2e-test-suite.sh deleted file mode 100755 index d0b5166b84c..00000000000 --- a/run-e2e-test-suite.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -export PATH=PATH:$GOPATH/bin - -# Test clients -hydra clients create --id foobar -hydra clients delete foobar - -# Test token on arbitrary endpoints -curl --header "Authorization: bearer $(hydra token client)" http://localhost:4444/clients - -# Test token validation -hydra token validate $(hydra token client) \ No newline at end of file