[segyio] 336/376: Travis: Upload tarballs w/submodules to releases

Jørgen Kvalsvik jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

jokva-guest pushed a commit to branch debian
in repository segyio.

commit 76c395f1e16001252b9af74d28655050f482690c
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date:   Wed Aug 9 14:02:20 2017 +0200

    Travis: Upload tarballs w/submodules to releases
    
    Github releases from tags automatically create source tarballs, but
    they are unbuildable by default, because they lack the pycmake
    submodule. In order to make tarball-based distribution easier, the
    segyio-$tag-all tarballs are uploaded on every release.
---
 .travis.yml | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 7df9d79..ac33318 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -90,6 +90,7 @@ before_script:
              --project=compile_commands.json
              --error-exitcode=1
   - popd
+
 script:
   - pushd build
   - make && ctest --output-on-failure
@@ -100,10 +101,16 @@ script:
   - mv wheelhouse build/python/dist
 
 before_deploy:
-    - pushd build/python
+  - git clone $TRAVIS_BUILD_DIR
+  - pushd segyio
+  - git submodule update --init pycmake
+  - popd
+  - pushd build/python
+  - tar --exclude-vcs -C $TRAVIS_BUILD_DIR -czvf segyio-$TRAVIS_TAG-all.tar.gz segyio
+  - zip --exclude *.git -r segyio-$TRAVIS_TAG-all.zip $TRAVIS_BUILD_DIR/segyio/*
 
 after_deploy:
-    - popd
+  - popd
 
 deploy:
     - provider: pypi # source distribution (done from linux python 3.6 only)
@@ -125,3 +132,15 @@ deploy:
         secure: WHeA5x2iiXzjYXdgZeJU6l4fawRi/umqH1713QAj0RPZBAnD+9m8Zrpn2UWn9+1dtx6xUMkNg3ZTueVKTKo0f2i/4o0xkzQ5BW11cetCWusV2Dku1btPTA5Fhs+dvPDlL3m496a3Bq/A/fRDj5JLDiiPibvpM01lEBxFKYooWGQ75HVuhnAt57vabD45gDpIE7N23+So4+9bsG/nT/ZlgoaS01uLTdlnf6tjNgP0/UBkonmedC62iVvCu7itfHZMTY2rSeww7KBMI3s7Gz+cyx9IbI3shbDpdJGHpM8Qe+1oFi31Z+DylWQA5SkpHlLMUP+zjMKLF+1hXGNUeJuyadIFrxzbS3vTV2yRPa6ol8q+bX7YLy0xNLSE8aMm54LKgXfRKLc3G8d3I33oEfyk5hygY8iEX728r2TsARslYxOF3sZqJvY8lx4GBEDiXxX2GJvGCPy/Uby786uWnZlFFkDERk3n [...]
       on:
         tags: true
+
+    - provider: releases # upload tarball with submodule
+      skip_cleanup: true
+      overwrite: true
+      file:
+        - segyio-$TRAVIS_TAG-all.tar.gz
+        - segyio-$TRAVIS_TAG-all.zip
+      api_key:
+        secure: VdV/5kCCwUFwgU7wvKRrOy4u9nnvLsM3RoW1G2z8w8e838fcTeXLU3Zu8rLzLpcaXJKX07WNQmG85PZrgRjB9mzZAbXnPJeMk5MT3YVWaiyF6zNxK+mQQOvTCJ8P25nm5Iq1PLtIW/wM1RqNLgT8t3AsLiIva+6JK+2wGA2ilOl2YVgJqEiZV1f9DJutPewDf8pqYrnrHktMmkio/uubc12MLFOrNeQxK/EJahw7x56q8EcxrJXHnv6T2zEvUdcEYfRvIrT62jiVqiJP9wmUVdq2x8/RlgRzcCpGhy2o17iMUIH228so2hbu5/NcvtAh/LUDeqlhQ1YLRp1vO6H8Uh9B6aJgBNPwYmrKBHQQD27l5vt74DNJuqsXTZtrQlzUiiptKTV7mjFckF7mG04d1J/0GcVcxjpRZa3rp85KymQKWTsuWJYrCWSeVh+SMwUAbMZ3/vhEKPtrf4rwI+4INTitLuBN [...]
+      on:
+        tags: true
+        condition: $TRAVIS_OS_NAME == linux && $MB_PYTHON_VERSION == 3.6

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git



More information about the debian-science-commits mailing list