Commit ae72c368c21623c66f9ba7614334ff7d5a073f31
1 parent
391c2435
Exists in
master
and in
39 other branches
Only build on certain branches
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
ci/build_rpm.sh
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | -if [ "$TRAVIS_BRANCH" != "ci-package" ]; then | 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 | ||
| 4 | exit 0; | 10 | exit 0; |
| 5 | fi | 11 | fi |
| 6 | 12 | ||
| @@ -27,4 +33,4 @@ sudo cp $PACKAGE_PATH /tmp/ | @@ -27,4 +33,4 @@ sudo cp $PACKAGE_PATH /tmp/ | ||
| 27 | # Send to packagecloud | 33 | # Send to packagecloud |
| 28 | 34 | ||
| 29 | gem install package_cloud | 35 | gem install package_cloud |
| 30 | -package_cloud push seocam/colab-$TRAVIS_BRANCH/el/7 /tmp/*.rpm | 36 | +package_cloud push seocam/$REPO/el/7 /tmp/*.rpm |