Skip to content

Commit

Permalink
ci: Add push of -pack branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Pro committed Aug 11, 2019
1 parent b1729ab commit 5bb3280
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions tools/travis/travis_linux_script.sh
Expand Up @@ -440,9 +440,9 @@ if ! [ -z ${DEBIAN+x} ]; then
echo -e "\r\n== Building the Debian package ==" && echo -en 'travis_fold:start:script.build.debian\\r'
/usr/bin/$PYTHON ./debian/update_changelog.py
echo -e "\r\n --- New debian changelog content ---"
echo -e "--------------------------------------"
echo "--------------------------------------"
cat ./debian/changelog
echo -e "--------------------------------------"
echo "--------------------------------------"
dpkg-buildpackage -b
if [ $? -ne 0 ] ; then exit 1 ; fi
cp ../open62541*.deb .
Expand Down Expand Up @@ -512,6 +512,28 @@ if [ "$CC" != "tcc" ]; then
echo -en "\r\n== Building coveralls for ${TRAVIS_REPO_SLUG} ==" && echo -en 'travis_fold:start:script.build.coveralls\\r'
coveralls -E '.*/build/CMakeFiles/.*' -E '.*/examples/.*' -E '.*/tests/.*' -E '.*\.h' -E '.*CMakeCXXCompilerId\.cpp' -E '.*CMakeCCompilerId\.c' -r ../ || true # ignore result since coveralls is unreachable from time to time
echo -en 'travis_fold:end:script.build.coveralls\\r'

if ( [ "${TRAVIS_PULL_REQUEST}" = "false" ] &&
( [ "${TRAVIS_BRANCH}" == "master" ] || "${TRAVIS_BRANCH}" == "1.0" ] || "${TRAVIS_BRANCH}" == "pack_branch" ] )); then
# Create a separate branch with the `-pack` postfix. This branch has the correct debian/changelog set, and
# The submodules are directly copied
echo -e "\r\n== Pushing ${TRAVIS_BRANCH}-pack branch ==" && echo -en 'travis_fold:start:script.build.pack-branch\\r'

cp -r deps/mdnsd deps/mdnsd_back
cp -r deps/ua-nodeset deps/ua-nodeset_back
git rm -rf deps/mdnsd
git rm -rf deps/ua-nodeset
mv deps/mdnsd_back deps/mdnsd
mv deps/ua-nodeset_back deps/ua-nodeset
git add deps/*
git add debian/changelog
git commit -m "[ci skip] Pack with inline submodules"
git push -uf origin ${TRAVIS_BRANCH}:${TRAVIS_BRANCH}-pack

echo -en 'travis_fold:end:script.build.pack-branch\\r'
fi


fi
cd .. && rm build -rf
fi

0 comments on commit 5bb3280

Please sign in to comment.