diff --git a/.travis.yml b/.travis.yml index 7b63dba..c655013 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ go: script: - make dist - make prepare-test +- make test-e2e deploy: provider: releases diff --git a/Makefile b/Makefile index a10791b..b4106ba 100644 --- a/Makefile +++ b/Makefile @@ -28,3 +28,13 @@ prepare-test: sudo systemctl status containerd --no-pager sudo systemctl status faas-containerd --no-pager sudo systemctl status faasd --no-pager + curl -SLfs https://cli.openfaas.com | sudo sh + +.PHONY: test-e2e +test-e2e: + sudo cat $(HOME)/go/src/github.com/alexellis/faasd/basic-auth-password | faas-cli login --password-stdin + faas-cli store deploy figlet + faas-cli list -v + uname | faas-cli invoke figlet + faas-cli delete figlet + faas-cli list -v \ No newline at end of file