-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathtest-integration.sh
More file actions
executable file
·63 lines (42 loc) · 1.29 KB
/
test-integration.sh
File metadata and controls
executable file
·63 lines (42 loc) · 1.29 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
#!/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
log_phase "Building from current source tree"
# build all docker images and client binaries
make build
# use the built client binaries
export PATH=$DEIS_ROOT/deisctl:$DEIS_ROOT/client/dist:$PATH
log_phase "Running documentation tests"
# test building documentation
make -C docs/ test
log_phase "Running unit and functional tests"
make test-components
log_phase "Provisioning 3-node CoreOS"
export DEIS_NUM_INSTANCES=3
git checkout $DEIS_ROOT/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 "Publishing release from source tree"
make dev-release
log_phase "Provisioning Deis"
deisctl install platform
deisctl scale router=3
deisctl start router@1 router@2 router@3
time deisctl start platform
log_phase "Running integration suite"
time make test-integration