[segyio] 356/376: Only create tarballs on linux.
Jørgen Kvalsvik
jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:58 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 3a545ceeab06a2d15d7a9a23ee4c8d4fe18d085f
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date: Thu Aug 17 08:55:52 2017 +0200
Only create tarballs on linux.
---
.travis.yml | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index f2b2c18..385556c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -100,15 +100,17 @@ script:
- install_run $PLAT
- mv wheelhouse build/python/dist
-after_success:
- - git clone $TRAVIS_BUILD_DIR
- - pushd segyio
- - git submodule update --init pycmake
- - popd
- - 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/*
-
before_deploy:
+ # OS X ships with a tar that doesn't support --exclude-vcs, which is
+ # unproblematic as long as source code is uploaded from linux.
+ - if [[ "$TRAVIS_OS_NAME" == "linux" && ! -d segyio ]]; then
+ git clone $TRAVIS_BUILD_DIR;
+ pushd segyio;
+ git submodule update --init pycmake;
+ popd;
+ 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/*;
+ fi
- pushd build/python
after_deploy:
--
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