Depend on libs in main crate

This way we do not need the travis-scripting-foo anymore.
This commit is contained in:
Matthias Beyer 2016-01-10 17:04:19 +01:00
parent 37e5307e08
commit 578414287a
3 changed files with 34 additions and 17 deletions

View file

@ -32,23 +32,8 @@ script:
cd - cd -
} }
if_changed_then_build_or_exit() {
if [[ $(changes_in "$1") ]]; then
echo "Changes in $1, building..."
travis_cargo_run_in "$1" || exit 1
else
echo "No changes in $1"
fi
}
[[ $(changes_in "doc") ]] && echo "Changes in ./doc are not build by CI" [[ $(changes_in "doc") ]] && echo "Changes in ./doc are not build by CI"
travis_cargo_run_in "."
if_changed_then_build_or_exit "libimagmodule"
if_changed_then_build_or_exit "libimagrt"
if_changed_then_build_or_exit "libimagstore"
if_changed_then_build_or_exit "libimagutil"
(changes_in "src" && travis_cargo_run_in ".") || true
addons: addons:
apt: apt:

22
Cargo.lock generated
View file

@ -1,4 +1,26 @@
[root] [root]
name = "imag" name = "imag"
version = "0.1.0" version = "0.1.0"
dependencies = [
"libimagmodule 0.1.0",
"libimagrt 0.1.0",
"libimagstore 0.1.0",
"libimagutil 0.1.0",
]
[[package]]
name = "libimagmodule"
version = "0.1.0"
[[package]]
name = "libimagrt"
version = "0.1.0"
[[package]]
name = "libimagstore"
version = "0.1.0"
[[package]]
name = "libimagutil"
version = "0.1.0"

View file

@ -10,5 +10,15 @@ readme = "README.md"
description = "CLI PIM suite with nice API, so you can use an MUA, Editor, etc. of your choice" description = "CLI PIM suite with nice API, so you can use an MUA, Editor, etc. of your choice"
keywords = ["PIM", "personal", "information", "management", "cli", "vcard", "ical", "wiki", "bookmark", "todo", "rss" ] keywords = ["PIM", "personal", "information", "management", "cli", "vcard", "ical", "wiki", "bookmark", "todo", "rss" ]
[dependencies] [dependencies.libimagmodule]
path = "./libimagmodule"
[dependencies.libimagrt]
path = "./libimagstore"
[dependencies.libimagstore]
path = "./libimagstore"
[dependencies.libimagutil]
path = "./libimagutil"