Migrates clean to python
[apex.git] / ci / clean.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 #Clean script to uninstall provisioning server for Apex
12 #author: Dan Radez (dradez@redhat.com)
13 #author: Tim Rozet (trozet@redhat.com)
14 set -e
15 yum -y install python34 python34-devel libvirt-devel python34-pip python-tox ansible
16 mkdir -p ~/tmp
17 mv -f .build ~/tmp/
18 sudo pip3 install --upgrade --force-reinstall .
19 mv -f ~/tmp/.build .
20 opnfv-clean $@