-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
112 lines (112 loc) · 2.97 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
language: c
matrix:
include:
- os: linux
compiler: gcc
env: DEPLOY=true
- os: osx
compiler: clang
env: DEPLOY=true
- os: osx
compiler: gcc
notifications:
email: false
branches:
only:
- master
- "/^v.*$/"
- "/travis-.*/"
addons:
apt:
packages:
- gfortran
- libcfitsio3-dev
- libopenblas-dev
- liblapack-dev
- opencl-headers
homebrew:
packages:
- gcc
- cfitsio
before_install:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
pushd /tmp
curl http://registrationcenter-download.intel.com/akdlm/irc_nas/9019/opencl_runtime_16.1.1_x64_ubuntu_6.4.0.25.tgz | tar xz
cd opencl_runtime_*
sed -i "s/ACCEPT_EULA=decline/ACCEPT_EULA=accept/g" silent.cfg
sudo ./install.sh --silent silent.cfg
popd
fi
- |
pushd /tmp
git clone git://github.com/JohannesBuchner/MultiNest.git
cd MultiNest/build
cmake .. -G "Unix Makefiles"
make
sudo make install
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo ldconfig
fi
popd
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
- export RELEASE=build/lensed-$RELEASE_VERSION.$RELEASE_TAG.tar.gz
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
export CFITSIO_LIB="-l:libcfitsio.a"
export EXTRA_LIBS="-lz -Wl,-rpath='$ORIGIN'"
fi
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export CFITSIO_LIB="/usr/local/lib/libcfitsio.a"
export EXTRA_LIBS="-Wl,-rpath,@executable_path"
fi
- |
pushd /tmp
cd MultiNest
curl -L http://git.io/vkACf | patch -p1
cd build
cmake .. -DCMAKE_MACOSX_RPATH=ON
make
sudo make install
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo ldconfig
fi
popd
- |
pushd /tmp
curl -L https://github.com/ericmandel/xpa/archive/master.tar.gz | tar xz
cd xpa-master
./configure --without-x --without-tcl
make
sudo make install
popd
- |
pushd /tmp
curl -L https://github.com/ericmandel/regions/archive/master.tar.gz | tar xz
cd regions-master
./configure
make
sudo make install
popd
- make distclean
- make XPA=1 REGIONS=1
- make release
deploy:
provider: releases
api_key:
secure: e8usjykFyRhRPd6cqt5x4VdIGi3j4mBwYfpUvvoKvlASQrBvoxodGyT7jHTlno2WN7aJuzUko5TaUWhbSj/MzZnltISbf/cRqd5qoeasUkQhNhIFUWFmH8nmUEP53Zk0dOEDUzjOEjVrUJ+s8+qboci6sgibdofvod5RqPPttagq26g26zWCj8GBZy1T8tppwXhprdzNCko4AwTehjCjqoUV64aMoP121o7F8yzrHnjCnnIZ6fzfpwuSVmg7XlDMHHnI43MvCCKzlCVQyLvpWWNigs5X9tJ7FVNOHiuTDwgaTCcEwUwTJKvE7wu8ficOC6j/mRohzdJG7zHTmFCZYDsUigs2UvH+Bph49/d6cJZaUO6yo0F38MDnXYnskxUUncO/4Fg+3a4ELYmtQGFGqjgobocWlK+GvH7zlNpFgl8h+3KLn9N3CzkwkF2SRQkqlm/tUnvjEO4fcMCbR4QxFwM9H1mj99SVp9AYBoyyYN2zJ2kb9QsYHHMMkRAMC4la99+JxvPVein/gYDz0kfhxipS78qUhJ0sjTq6Xs3sJhy2eshMCgufWDkeBsMde3uV0O3dA7RC5QkTVyIaG33QAEf9lzjtHJTJ+BOgPfZRYpmU+OmiO1TKxJI9xoDtl1ggnFzDSCkbwCTQyPQk1L/GobF+hOMyD8BgZ3WVKyJgqjE=
file: ${RELEASE}
skip_cleanup: true
on:
repo: glenco/lensed
tags: true
condition: $DEPLOY = true