Commit 26452af83b8833dce0b87416ef560cb9f0dbe512

Authored by Sergio Oliveira
1 parent cbfb32a1
Exists in test

Building rpm on circle

Showing 2 changed files with 16 additions and 9 deletions   Show diff stats
ci/build_rpm.sh
1 1 #!/bin/bash
2 2  
3   -if [ "$TRAVIS_BRANCH" == "master" ]; then
4   - repo="colab-unstable"
5   -elif [ "$TRAVIS_BRANCH" == "stable" ]; then
6   - repo="colab-stable"
7   -elif [ "$TRAVIS_BRANCH" == "test" ]; then
8   - repo="colab-testing"
9   -else
10   - exit 0;
11   -fi
  3 +BRANCH=${TRAVIS_BRANCH:-${CIRCLE_BRANCH}}
  4 +
  5 +case $BRANCH in
  6 + "master")
  7 + repo="colab-unstable" ;;
  8 + "stable")
  9 + repo="colab-stable" ;;
  10 + "test")
  11 + repo="colab-testing" ;;
  12 + *)
  13 + exit 1;;
  14 +esac
  15 +
12 16  
13 17 repo_url="https://packagecloud.io/seocam/$repo/el/7/x86_64"
14 18  
... ...
circle.yml
... ... @@ -12,3 +12,6 @@ database:
12 12 test:
13 13 override:
14 14 - make test
  15 +
  16 + post:
  17 + - make rpm
... ...