Travis CI: Produce .tar.gz file with version suffix matching AO version
authorIvan Maidanski <ivmai@mail.ru>
Tue, 16 May 2017 11:52:28 +0000 (14:52 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 16 May 2017 12:03:43 +0000 (15:03 +0300)
(fix commit 28ddf77)

.travis.yml

index de2e1b3..4ed4eb2 100644 (file)
@@ -11,6 +11,7 @@ matrix:
     dist: trusty
     env:
     - MAKEFILE_TARGET=distcheck
+    - AO_REAL_VERSION=7.2g
   - os: linux
     env:
     - MAKEFILE_TARGET=dist
@@ -27,6 +28,11 @@ before_install:
 script:
 - ./configure
 - make -j $MAKEFILE_TARGET
+- if [[ "$AO_REAL_VERSION" != "" ]]; then
+    gzip --decompress libatomic_ops-*.tar.gz;
+    mv libatomic_ops-*.tar libatomic_ops-$AO_REAL_VERSION.tar;
+    gzip --best libatomic_ops-*.tar;
+  fi
 
 deploy:
   provider: releases