Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added OrientDB 2.1.9 #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
matrix:
- ORIENTDB_VERSION=1.7.10
- ORIENTDB_VERSION=2.0.12
- ORIENTDB_VERSION=2.1.9
addons:
code_climate:
repo_token: 9048159e3344dd9ba3afbc6044c1648f472de839baf7cc9eb73089b71439052b
22 changes: 21 additions & 1 deletion ci/odb-shared.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
#!/bin/bash

CHANGE=(2 1 5)


isPostChange(){

declare -a v=("${@}")

if [ ${v[0]} -ge ${CHANGE[0]} ] && [ ${v[1]} -ge ${CHANGE[1]} ] && [ ${v[2]} -gt ${CHANGE[2]} ]; then
return 0;
else
return 1;
fi

}
odb_compare_version () {
# TODO: this function does not handle well versions with additional rank
# indicators such as "-rc1" but I guess it suffices for now.
Expand Down Expand Up @@ -51,8 +65,14 @@ odb_download_server () {
mkdir "$OUTPUT_DIR"
fi

array=(${ODB_VERSION//./ })

if odb_command_exists "mvn" ; then
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -Dartifact=com.orientechnologies:orientdb-community:$ODB_VERSION:$ODB_PACKAGE_EXT:distribution -DremoteRepositories="https://oss.sonatype.org/content/repositories/snapshots/,https://oss.sonatype.org/content/repositories/releases/" -Ddest=$OUTPUT_DIR/$ODB_C_PACKAGE
if isPostChange ${array[@]} ; then
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -Dartifact=com.orientechnologies:orientdb-community:$ODB_VERSION:$ODB_PACKAGE_EXT -DremoteRepositories="https://oss.sonatype.org/content/repositories/snapshots/,https://oss.sonatype.org/content/repositories/releases/" -Ddest=$OUTPUT_DIR/$ODB_C_PACKAGE
else
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -Dartifact=com.orientechnologies:orientdb-community:$ODB_VERSION:$ODB_PACKAGE_EXT:distribution -DremoteRepositories="https://oss.sonatype.org/content/repositories/snapshots/,https://oss.sonatype.org/content/repositories/releases/" -Ddest=$OUTPUT_DIR/$ODB_C_PACKAGE
fi
else
echo "Cannot download $1 [maven is not installed]"
exit 1
Expand Down