-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest-integration.sh
More file actions
executable file
·78 lines (57 loc) · 1.34 KB
/
test-integration.sh
File metadata and controls
executable file
·78 lines (57 loc) · 1.34 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
#
# Preps a test environment and runs `make test-integration`
# against artifacts produced from the current source tree
#
# 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
echo
echo "Running test-integration..."
echo
# test building documentation
make -C docs/ test
echo
echo "Building from current source tree..."
echo
# build all docker images and client binaries
make build
# use the built client binaries
export PATH=$DEIS_ROOT/deisctl:$DEIS_ROOT/client/dist:$PATH
echo
echo "Running unit and functional tests..."
echo
make test-components
echo
echo "Provisioning 3-node CoreOS..."
echo
export DEIS_NUM_INSTANCES=3
git checkout $DEIS_ROOT/contrib/coreos/user-data
make discovery-url
vagrant up --provider virtualbox
echo
echo "Waiting for etcd/fleet..."
until deisctl list >/dev/null 2>&1; do
sleep 1
done
echo
echo "Publishing release from source tree..."
echo
make dev-release
echo
echo "Provisioning Deis..."
echo
deisctl install platform
deisctl scale router=3
deisctl start router@1 router@2 router@3
time deisctl start platform
echo
echo "Running integration suite..."
echo
time make test-integration