Commit a327ed60 authored by Sebastien Gougeaud's avatar Sebastien Gougeaud Committed by Thomas Leibovici
Browse files

ci: add a new script which installs phobos RPM on the VM

The script configures the virtual machine to be phobos ready-to-use.

Change-Id: Id4f154b21a9d6890ae18e1d413f40e0da7f5f7ad
Signed-off-by: default avatarSebastien Gougeaud <>

Reviewed-by: Linter
Tested-by: default avatarJenkins s8open_nr <>
Reviewed-by: default avatarPatrice LUCAS <>
Reviewed-by: default avatarThomas Leibovici <>
parent c8b0e773
# -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil; -*-
# vim:expandtab:shiftwidth=4:tabstop=4:
# This script compiles and installs the phobos RPM and configure a ready-to-use
# environment (for demo or prod tests)
# (c) 2014-2019 CEA/DAM
# Licensed under the terms of the GNU Lesser GPL License version 2.1
set -xe
# set phobos root as cwd from phobos/ci directory
cur_dir=$(dirname $(readlink -m $0))
cd "$cur_dir"/..
# compile phobos RPM
make rpm
# (re-)install RPM
if [ ! -z `type -t phobos` ]; then
sudo yum -y remove phobos
sudo yum -y install rpms/RPMS/x86_64/phobos-1*
# clean phobos compilation directory
cd ..
rm -rf phobos
# setup phobos database
sudo -u postgres phobos_db drop_db || true
sudo -u postgres phobos_db setup_db -s -p phobos
# create socket directory (in case we use the daemon in interactive mode)
if [ ! -d "/run/phobosd" ]; then
sudo mkdir /run/phobosd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment