3 # This is the entry point for Jenkins.
4 # Script has do be called from "son-emu" root directory, like: sudo ./utils/ci/jenkins_entrypoint.sh
5 export DOCKER_HOST
="unix:///var/run/docker.sock"
7 # don't rely on Debian/Ubuntu Docker engine
8 apt-get remove docker-engine
18 apt-get
install -y git ansible aptitude
19 echo "localhost ansible_connection=local" >> /etc
/ansible
/hosts
21 # install containernet
22 git clone https
://github.com
/containernet
/containernet.git
23 CONTAINERNET_DIR
=$
(pwd)/containernet
24 echo "Installing containernet (will take some time ~30 minutes) ..."
25 cd $CONTAINERNET_DIR/ansible
26 ansible-playbook
install.yml
29 echo "Installing son-emu (will take some time) ..."
30 cd $SON_EMU_DIR/ansible
31 ansible-playbook
install.yml
33 # execute son-emu tests at the end to validate installation
34 echo "Running son-emu unit tests to validate installation"
36 python setup.py develop
37 py.
test -v src
/emuvim
/test
/unittests