diff options
author | jgeboski <jgeboski@gmail.com> | 2015-12-20 12:44:03 -0500 |
---|---|---|
committer | jgeboski <jgeboski@gmail.com> | 2015-12-20 13:08:01 -0500 |
commit | b9f3d252fc662e3ff3a216f1ea42e0d85cd34d69 (patch) | |
tree | 029e478fc2923664e511083cc1467b90a13eab9a /travis.sh | |
parent | 7cff245b84d410af087418b9eaf36803eaf29068 (diff) | |
download | bitlbee-facebook-b9f3d252fc662e3ff3a216f1ea42e0d85cd34d69.tar.gz bitlbee-facebook-b9f3d252fc662e3ff3a216f1ea42e0d85cd34d69.tar.bz2 bitlbee-facebook-b9f3d252fc662e3ff3a216f1ea42e0d85cd34d69.tar.xz |
travis: refactored for better readability and handling
Changes made:
- Build and install bitlbee from /tmp
- Disabled the building of the bitlbee documentation
- Moved all build commands to travis.yml (more informative)
- Moved all Travis related scripts to a hidden directory
- Moved the bitlbee build commands to a script
- Only deploy the master branch (excluding pull requests)
- Removed redundant parameters from the bitlbee configure command
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/travis.sh b/travis.sh deleted file mode 100755 index d4ba66c..0000000 --- a/travis.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -set -e - -CFLAGS="-Werror" ./autogen.sh --enable-warnings -make -make clean -scan-build -k --status-bugs make - -if [ "${TRAVIS_BRANCH}" != "master" ]; then - exit -fi - -FULLVERS="$(date +%Y%m%d)~$(git rev-parse --short=7 HEAD)~${TRAVIS_BUILD_NUMBER}" -FULLDATE=$(date -R) -REPONAME=$(basename "${TRAVIS_REPO_SLUG}") - -git reset -q --hard -git clean -dfqx - -sed -ri \ - -e "18 s/^(\s+).*(,)\$/\1\[${FULLVERS}\]\2/" \ - -e "s|^PKG_CHECK_MODULES\(\[BITLBEE\].*|plugindir=/usr/lib/bitlbee|" \ - configure.ac -sed -ri \ - -e "s/bitlbee-dev \([^\(\)]+\),?\s*//" \ - debian/control - -cat <<EOF > debian/changelog -${REPONAME} (${FULLVERS}) UNRELEASED; urgency=medium - - * Updated to ${FULLVERS}. - - -- Travis CI <travis@travis-ci.org> ${FULLDATE} -EOF - -cat <<EOF > ~/.oscrc -[general] -apiurl = https://api.opensuse.org -[https://api.opensuse.org] -user = ${OBSUSER} -pass = ${OBSPASS} -EOF - -mkdir -p m4 -cp /usr/local/include/bitlbee/*.h facebook -osc checkout "home:${OBSUSER}" "${REPONAME}" -o /tmp/obs - -( - cd /tmp/obs - rm -f *.{dsc,tar.gz} - dpkg-source -I -b "${TRAVIS_BUILD_DIR}" - - osc addremove -r - osc commit -m "Updated to ${FULLVERS}" -) |