Commit 8c685eb5 authored by Michael Mercier's avatar Michael Mercier
Browse files

Rename batsim for ci

parent c43a1cb9
#==============================================================================
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 cc=81 tw=80
#==============================================================================
#
# DESCRIPTION: An applicance for batsim continuous integration (CI)
# It contains all the dependencies mandatory for build and tests batsim
#
#==============================================================================
---
## Choose one of them the following extends
# Checkpoint only with btrfs
checkpoint: btrfs.yaml
extend: default/from_image/debian8.yaml
global:
backend: qemu
btrfs_volume: "/"
virtualbox_memory_size: 2048
qemu_memory_size : 2048
appliance_formats: tar.gz
appliance_tar_compression_level: fast
setup_packages: git cmake build-essential e2fsprogs $$setup_packages
default_keyboard_layout: fr
default_timezone: Europe/Paris
root_password: root
hostname: batsim
simctn_dir: /root
simgrid_commit: dccf1b41e9c7b # Wed Nov 30 14:08:01 2016
batsim_commit: 354c364850c1 # Mon Dec 5 14:09:57 2016
execo_commit: 725fddc
bootstrap:
- "@base"
setup:
#
# General configuration
#
- "@base"
- enable_root_ssh_login
#
# Simulator and schedulers install
#
- configure_apt_testing
- install_common_deps:
- install_build_tools:
- exec_in: |
apt-get -y -t testing install cmake gcc clang g++
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-6 100
- simgrid_install:
- commit_hash: $$simgrid_commit
- batsim:
# Need testing to be available
- install dependencies:
- exec_in: |
apt-get -y -t testing install \
libboost-all-dev \
libgmp-dev \
redis-server \
libhiredis-dev \
libev-dev \
python-yaml \
libssl-dev 2>&1
# Install rapidjson (not available in jessy)
- exec_in: |
cd $$simctn_dir
git clone https://github.com/miloyip/rapidjson.git
- exec_in: |
cd $$simctn_dir/rapidjson
git checkout 3d5848a # v1.02
cp -a include/rapidjson /usr/include
- exec_in: |
cd $$simctn_dir
git clone https://github.com/hmartiro/redox.git
cd redox
git checkout 64becf28f3dd
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install
make -j $(nproc)
make install
cd ../install
mv -f lib64 lib
sudo cp -r ./* /usr/
- install_test_dependencies:
- exec_in: apt install -y -t testing python-pip valgrind python-pandas
- exec_in: pip2 install sortedcontainers redis
- exec_in: |
cd $$simctn_dir
git clone https://github.com/mickours/execo.git
cd execo
git checkout $${execo_commit}
pip install -e .
- install_doc_dependencies:
- exec_in: apt install -y -t testing doxygen graphviz
# - do_it:
# - exec_in: |
# cd $$simctn_dir
# git clone https://github.com/oar-team/batsim.git
# - exec_in: |
# cd $$simctn_dir/batsim
# git checkout $$batsim_commit
# mkdir build
# - exec_in: |
# cd $$simctn_dir/batsim/build
# cmake .. -DCMAKE_CXX_COMPILER=/usr/bin/g++-6
# make -j$(nproc)
# make install
- reprozip:
- reprozip_version: 1.0.8
export:
- "@base"
- docker_export:
- do_export:
- exec_local: |
docker import $${appliance_filename}.tar.gz oarteam/batsim_ci:latest
- exec_local: |
docker tag oarteam/batsim_ci:latest oarteam/batsim_ci:$(date "+%Y%m%d")
- exec_local: |
docker push oarteam/batsim_ci:latest
docker push oarteam/batsim_ci:$(date "+%Y%m%d")
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