-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest-nightly.sh
More file actions
executable file
·57 lines (41 loc) · 1.25 KB
/
test-nightly.sh
File metadata and controls
executable file
·57 lines (41 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
#
# Preps a test environment and runs `make test-integration`
# using the latest published artifacts available on Docker Hub
# and the deis.io website.
#
# fail on any command exiting non-zero
set -eo pipefail
# absolute path to current directory
export THIS_DIR=$(cd $(dirname $0); pwd)
# setup the test environment
source $THIS_DIR/test-setup.sh
# setup callbacks on process exit and error
trap cleanup EXIT
trap dump_logs ERR
log_phase "Running test-nightly on $DEIS_TEST_APP"
log_phase "Installing clients"
# FIXME: switch to deis CLI install from website
cd $DEIS_ROOT/client
sudo python setup.py install
cd $THIS_DIR
# install latest deisctl from the website
curl -sSL http://deis.io/deisctl/install.sh | sudo sh
log_phase "Provisioning 3-node CoreOS"
export DEIS_NUM_INSTANCES=3
git checkout contrib/coreos/user-data
make discovery-url
vagrant up --provider virtualbox
log_phase "Waiting for etcd/fleet"
until deisctl list >/dev/null 2>&1; do
sleep 1
done
log_phase "Provisioning Deis"
# provision deis from master using :latest
deisctl install platform
deisctl scale router=3
deisctl start router@1 router@2 router@3
time deisctl start platform
log_phase "Running integration tests"
# run the full integration suite
time make test-integration