Migrates Apex to Python
[apex.git] / ci / deploy.sh
1 #!/usr/bin/env bash
2 ##############################################################################
3 # Copyright (c) 2015 Tim Rozet (Red Hat), Dan Radez (Red Hat) and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 # Deploy script to install provisioning server for OPNFV Apex
12 # author: Dan Radez (dradez@redhat.com)
13 # author: Tim Rozet (trozet@redhat.com)
14 #
15
16 set -e
17 yum -y install python34 python34-devel libvirt-devel python34-pip python-tox ansible
18 mkdir -p /home/jenkins-ci/tmp
19 mv -f .build /home/jenkins-ci/tmp/
20 pip3 install --upgrade --force-reinstall .
21 mv -f /home/jenkins-ci/tmp/.build .
22 opnfv-deploy $@