From 26452af83b8833dce0b87416ef560cb9f0dbe512 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Sun, 22 Mar 2015 00:43:53 -0300 Subject: [PATCH] Building rpm on circle --- ci/build_rpm.sh | 22 +++++++++++++--------- circle.yml | 3 +++ 2 files changed, 16 insertions(+), 9 deletions(-) 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