Skip to content

Commit

Permalink
cleanup after build, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
arnehilmann committed Nov 10, 2016
1 parent 237e858 commit bf671ce
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ script:
- pyb -X
- cat target/reports/coverage
after_success:
- find target/dist/
- scripts/build-rpm
- find target/dist/
- ls -al target/dist/yumrepos-*/dist/
Expand Down
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
name = "yumrepos"
summary = "yumrepos: simple yum repositories with minimal rest api"
url = "https://github.com/arnehilmann/yumrepos"
version = "0.9.3"
version = "0.9.4"

authors = [Author('Arne Hilmann', '[email protected]')]

Expand Down
3 changes: 3 additions & 0 deletions scripts/build-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ build_on_centos6() {
(yumrepos &) &&
sleep 2 &&
./full-lifecycle-tests http://127.0.0.1:8080"
rm -fv $BUILD_DIR/full-* $BUILD_DIR/create-yum-conf
}

build_on_centos7() {
Expand All @@ -53,6 +54,7 @@ build_on_centos7() {
(yumrepos &) &&
sleep 2 &&
./full-lifecycle-tests http://127.0.0.1:8080"
rm -fv $BUILD_DIR/full-* $BUILD_DIR/create-yum-conf
}

build_on_fedora23() {
Expand All @@ -75,6 +77,7 @@ build_on_fedora23() {
(yumrepos &) &&
sleep 2 &&
./full-lifecycle-tests http://127.0.0.1:8080"
rm -fv $BUILD_DIR/full-* $BUILD_DIR/create-yum-conf
}

case $PY_VERSION in
Expand Down
7 changes: 5 additions & 2 deletions src/unittest/resources/full-lifecycle-tests
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,12 @@ $CURL -X DELETE $HOST/admin/v1/repos/$TESTREPO3 -i -s | $CHECK_STATE "404 NOT F
echo "calling update a last time, checking cleanup of metadata"
$CURL $HOST/admin/v1/update -i -s | $CHECK_STATE "204 NO CONTENT"

echo "trying to shutdown service, may fail when running as wsgi service"
echo "trying to shutdown service (this may fail when running as wsgi service)"
$CURL -X POST $HOST/admin/v1/shutdown

echo
echo "cleaning up"
rm -rfv $OUT

echo
echo "SUCCESS"
echo

0 comments on commit bf671ce

Please sign in to comment.