Skip to content

Commit

Permalink
make file and travis deploy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hasindu2008 committed Feb 12, 2019
1 parent 684fcb5 commit 408df45
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
19 changes: 10 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,15 @@ jobs:
- sudo apt-get clean
- sudo ln -s /usr/local/cuda-6.5/ ${CUDA_HOME}
script:
- mkdir -p f5c-${TRAVIS_TAG}-bin
- make cuda=1 && mv f5c f5c-${TRAVIS_TAG}-bin/f5c_x86_64_linux_cuda && make clean
- make && mv f5c f5c-${TRAVIS_TAG}-bin/f5c_x86_64_linux
- cp -r README.md LICENSE docs f5c-${TRAVIS_TAG}-bin/
- mkdir -p f5c-${TRAVIS_TAG}-bin/scripts
- cp scripts/common.sh scripts/test.awk scripts/test.sh f5c-${TRAVIS_TAG}-bin/scripts
- tar -zcf f5c-${TRAVIS_TAG}-bin.tar.gz f5c-${TRAVIS_TAG}-bin
- rm -rf f5c-${TRAVIS_TAG}-bin
- make dist
- mkdir -p f5c-${TRAVIS_TAG}
- make cuda=1 && mv f5c f5c-${TRAVIS_TAG}/f5c_x86_64_linux_cuda && make clean
- make && mv f5c f5c-${TRAVIS_TAG}/f5c_x86_64_linux
- cp -r README.md LICENSE docs f5c-${TRAVIS_TAG}/
- mkdir -p f5c-${TRAVIS_TAG}/scripts
- cp scripts/common.sh scripts/test.awk scripts/test.sh f5c-${TRAVIS_TAG}/scripts
- tar -zcf f5c-${TRAVIS_TAG}-binaries.tar.gz f5c-${TRAVIS_TAG}
- rm -rf f5c-${TRAVIS_TAG}
deploy:
provider: releases
api_key:
Expand All @@ -89,4 +90,4 @@ jobs:
repo: hasindu2008/f5c
tags: true
before_deploy:
- make dist
- make clean
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,19 @@ dist: distclean
installdeps.mk src docs build .dockerignore configure f5c-$(VERSION)
mkdir -p f5c-$(VERSION)/scripts
cp scripts/install-hdf5.sh scripts/install-hts.sh scripts/test.sh scripts/common.sh scripts/test.awk f5c-$(VERSION)/scripts
tar -zcf f5c-$(VERSION).tar.gz f5c-$(VERSION)
tar -zcf f5c-$(VERSION)-release.tar.gz f5c-$(VERSION)
rm -rf f5c-$(VERSION)

binary:
mkdir -p f5c-$(VERSION)-bin
mkdir -p f5c-$(VERSION)
make clean
make cuda=1 && mv f5c f5c-$(VERSION)-bin/f5c_x86_64_linux_cuda && make clean
make && mv f5c f5c-$(VERSION)-bin/f5c_x86_64_linux
cp -r README.md LICENSE docs f5c-$(VERSION)-bin/
mkdir -p f5c-$(VERSION)-bin/scripts
cp scripts/test.sh scripts/common.sh scripts/test.awk f5c-$(VERSION)-bin/scripts
tar -zcf f5c-$(VERSION)-bin.tar.gz f5c-$(VERSION)-bin
rm -rf f5c-$(VERSION)-bin
make cuda=1 && mv f5c f5c-$(VERSION)/f5c_x86_64_linux_cuda && make clean
make && mv f5c f5c-$(VERSION)/f5c_x86_64_linux
cp -r README.md LICENSE docs f5c-$(VERSION)/
mkdir -p f5c-$(VERSION)/scripts
cp scripts/test.sh scripts/common.sh scripts/test.awk f5c-$(VERSION)/scripts
tar -zcf f5c-$(VERSION)-binaries.tar.gz f5c-$(VERSION)
rm -rf f5c-$(VERSION)

install: $(BINARY)
mkdir -p $(DESTDIR)$(PREFIX)/bin
Expand Down

0 comments on commit 408df45

Please sign in to comment.