Skip to content

Commit 66fc7ef

Browse files
committed
Merge pull request #1894 from mboersma/1893-nightly-tests
feat(tests): add test-nightly.sh script for CI
2 parents d3ff1ce + 5cf53e9 commit 66fc7ef

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

tests/bin/test-nightly.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

0 commit comments

Comments
 (0)