Skip to content

Commit cdc7f13

Browse files
committed
ref(tests): update details in CI node setup script
1 parent c162bc6 commit cdc7f13

4 files changed

Lines changed: 25 additions & 13 deletions

File tree

tests/bin/destroy-all-vagrants.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ for dir in $VMS; do
1010
done
1111

1212
# optional commands to remove all VirtualBox vms, since sometimes they are orphaned
13-
#VBoxManage list vms | sed -n -e 's/^.* {\(.*\)}/\1/p' | xargs -L1 -i VBoxManage unregistervm {} --delete
13+
#VBoxManage list vms | sed -n -e 's/^.* {\(.*\)}/\1/p' | xargs -L1 -I {} VBoxManage unregistervm {} --delete
1414
#rm -rf $HOME/VirtualBox\ VMs/deis*

tests/bin/setup-node.sh

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,40 @@
33
# Preps a Ubuntu 14.04 box with requirements to run as a Jenkins node to http://ci.deis.io/
44
# Should be run as root.
55

6-
# install docker 1.1.2
6+
# install docker 1.2.0
77
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
88
sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
9-
apt-get update
10-
apt-get install -yq lxc-docker-1.1.2
9+
apt-get update && apt-get install -yq lxc-docker-1.2.0
1110

1211
# install java
13-
apt-get install -yq java-common openjdk-7-jre-headless
12+
apt-get install -yq openjdk-7-jre-headless
1413

1514
# install virtualbox 4.3.14
1615
apt-get install -yq build-essential libgl1 libgl1-mesa-glx libpython2.7 libqt4-network libqt4-opengl \
1716
libqtcore4 libqtgui4 libsdl1.2debian libvpx1 libxcursor1
18-
wget http://download.virtualbox.org/virtualbox/4.3.14/virtualbox-4.3_4.3.14-95030~Ubuntu~raring_amd64.deb
19-
dpkg -i virtualbox-4.3_4.3.14-95030~Ubuntu~raring_amd64.deb && \
20-
rm virtualbox-4.3_4.3.14-95030~Ubuntu~raring_amd64.deb
17+
wget http://download.virtualbox.org/virtualbox/4.3.16/virtualbox-4.3_4.3.16-95972~Ubuntu~raring_amd64.deb
18+
dpkg -i virtualbox-4.3_4.3.16-95972~Ubuntu~raring_amd64.deb && \
19+
rm virtualbox-4.3_4.3.16-95972~Ubuntu~raring_amd64.deb
2120

2221
# install vagrant
23-
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.deb
24-
dpkg -i vagrant_1.6.3_x86_64.deb && rm vagrant_1.6.3_x86_64.deb
22+
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
23+
dpkg -i vagrant_1.6.5_x86_64.deb && rm vagrant_1.6.5_x86_64.deb
2524

2625
# install go
2726
wget -qO- https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz | tar -C /usr/local -xz
2827
echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
28+
echo "You must reboot for the global $PATH changes to take effect."
2929

3030
# install test suite requirements
31-
apt-get install -yq python-dev libpq-dev libyaml-dev git postgresql postgresql-client
31+
apt-get install -yq curl mercurial python-dev libpq-dev libyaml-dev git postgresql postgresql-client
3232
RUN curl -sSL https://raw.githubusercontent.com/pypa/pip/1.5.6/contrib/get-pip.py | python -
3333
pip install virtualenv
3434

35+
# set up PostgreSQL requirements for controller unit tests
36+
sudo -u postgres createuser --createdb jenkins
37+
# sudo -u postgres psql
38+
# postgres=# create database deis owner jenkins
39+
3540
# create jenkins user and install node bootstrap script
3641
useradd -G docker,vboxusers -s /bin/bash -m jenkins
3742
mkdir -p /home/jenkins/bin

tests/bin/test-latest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ time deisctl start platform
5757

5858
log_phase "Running integration tests"
5959

60-
# run the full integration suite
61-
time make test-integration
60+
# run the smoke tests unless another target is specified
61+
make ${TEST_TYPE:-test-smoke}

tests/bin/test-setup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ log_phase "Preparing test environment"
1414
export DEIS_ROOT=${GOPATH?}/src/github.com/deis/deis
1515
echo "DEIS_ROOT=$DEIS_ROOT"
1616

17+
# prepend GOPATH/bin to PATH
18+
export PATH=${GOPATH}/bin:$PATH
19+
1720
# the application under test
1821
export DEIS_TEST_APP=${DEIS_TEST_APP:-example-go}
1922
echo "DEIS_TEST_APP=$DEIS_TEST_APP"
@@ -38,6 +41,10 @@ echo "DEISCTL_TUNNEL=$DEISCTL_TUNNEL"
3841
export DEISCTL_UNITS=${DEISCTL_UNITS:-$DEIS_ROOT/deisctl/units}
3942
echo "DEISCTL_UNITS=$DEISCTL_UNITS"
4043

44+
# ip address for docker containers to communicate in functional tests
45+
export HOST_IPADDR=${HOST_IPADDR?}
46+
echo "HOST_IPADDR=$HOST_IPADDR"
47+
4148
# the registry used to host dev-release images
4249
# must be accessible to local Docker engine and Deis cluster
4350
export DEV_REGISTRY=${DEV_REGISTRY?}

0 commit comments

Comments
 (0)