2018-09-17 15:42:26 +02:00
|
|
|
extern crate benchmark_repository;
|
|
|
|
extern crate pretty_env_logger;
|
|
|
|
|
2018-09-17 17:45:30 +02:00
|
|
|
use benchmark_repository::{BenchmarkRepository, TargetPath};
|
2018-09-17 15:42:26 +02:00
|
|
|
|
|
|
|
use std::path::Path;
|
|
|
|
|
|
|
|
fn main()
|
|
|
|
{
|
|
|
|
pretty_env_logger::init();
|
|
|
|
|
|
|
|
let benchmark_repository = BenchmarkRepository::new("git@git.luehne.de:patrick/tplp-planning-benchmark.git", Path::new("storage"), "git", "Potassco Bot", "bot@potassco.org");
|
2018-09-17 17:45:30 +02:00
|
|
|
|
|
|
|
let files = vec!
|
|
|
|
[
|
|
|
|
TargetPath{source: &Path::new("/tmp/test"), destination: &Path::new("foobar/test")},
|
|
|
|
TargetPath{source: &Path::new("/tmp/test2"), destination: &Path::new("foobar/test-2")},
|
|
|
|
];
|
|
|
|
|
|
|
|
benchmark_repository.commit_files(&files[..], "test-results");
|
2018-09-17 15:42:26 +02:00
|
|
|
}
|