File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # Preps a test environment and runs `make test-integration` with single-node vagrant.
4+
5+ echo Testing ${DEIS_TEST_APP?} ...
6+ THIS_DIR=$( cd $( dirname $0 ) ; pwd) # absolute path
7+
8+ cd ${GOPATH?} /src/github.com/deis/deis
9+ echo DEISCTL_TUNNEL=${DEISCTL_TUNNEL?}
10+
11+ # Environment reset and configuration
12+ rm -rf ~ /.deis
13+ ssh-add -D || eval $( ssh-agent) && ssh-add -D
14+ ssh-add ~ /.vagrant.d/insecure_private_key
15+ ssh-add ~ /.ssh/deis
16+ $THIS_DIR /halt-all-vagrants.sh
17+ vagrant destroy --force
18+ rm -rf tests/example-*
19+
20+ set -e
21+
22+ if ! [[ -x deisctl ]]; then
23+ curl -sSL http://deis.io/deisctl/install.sh | sudo sh
24+ fi
25+
26+ vagrant up --provider virtualbox
27+ deisctl install platform
28+ deisctl start platform
29+ make test-integration
30+ deisctl uninstall platform
31+ vagrant halt
You can’t perform that action at this time.
0 commit comments