Skip to content

Commit

Permalink
fix release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Tessore committed May 30, 2015
1 parent 4386f27 commit 8927f62
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,27 @@ before_install:
cmake .. -G "Unix Makefiles" &&
make &&
sudo make install &&
if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ldconfig; fi &&
popd
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo ldconfig;
fi
install:
- make
script:
- bin/lensed --version
- bin/lensed --devices
- make test
before_deploy:
- export RELEASE_VERSION=$(git describe --tags)
- export RELEASE_TAG=$TRAVIS_OS_NAME.multinest-$MULTINEST
- export RELEASE=build/lensed-$RELEASE_VERSION.$RELEASE_TAG.tar.gz
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
export CFITSIO_LIB="/usr/lib/x86_64-linux-gnu/libcfitsio.a";
export EXTRA_LIBS="/usr/lib/x86_64-linux-gnu/libz.a";
fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export CFITSIO_LIB="/usr/local/lib/libcfitsio.a";
fi
- make clean
- make distclean
- make
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
install_name_tool -change /usr/local/lib/libmultinest.$MULTINEST.dylib libmultinest.$MULTINEST.dylib bin/lensed;
fi
- export RELEASE_VERSION=$(git describe --tags)
- export RELEASE_TAG=$TRAVIS_OS_NAME.multinest-$MULTINEST
- export RELEASE=build/lensed-$RELEASE_VERSION.$RELEASE_TAG.tar.gz
- make release
deploy:
provider: releases
Expand Down

0 comments on commit 8927f62

Please sign in to comment.