diff --git a/ci/build_rpm.sh b/ci/build_rpm.sh index 809c3e6..4899534 100755 --- a/ci/build_rpm.sh +++ b/ci/build_rpm.sh @@ -1,14 +1,18 @@ #!/bin/bash -if [ "$TRAVIS_BRANCH" == "master" ]; then - repo="colab-unstable" -elif [ "$TRAVIS_BRANCH" == "stable" ]; then - repo="colab-stable" -elif [ "$TRAVIS_BRANCH" == "test" ]; then - repo="colab-testing" -else - exit 0; -fi +BRANCH=${TRAVIS_BRANCH:-${CIRCLE_BRANCH}} + +case $BRANCH in + "master") + repo="colab-unstable" ;; + "stable") + repo="colab-stable" ;; + "test") + repo="colab-testing" ;; + *) + exit 1;; +esac + repo_url="https://packagecloud.io/seocam/$repo/el/7/x86_64" diff --git a/circle.yml b/circle.yml index 3fe2cc1..5424cba 100644 --- a/circle.yml +++ b/circle.yml @@ -12,3 +12,6 @@ database: test: override: - make test + + post: + - make rpm -- libgit2 0.21.2