forked from rordenlab/dcm2niix
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
47 lines (41 loc) · 1.39 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
language: cpp
git:
depth: 1
matrix:
include:
- os: linux
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5 # support c++14
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
- TARGET=lnx
- os: osx
osx_image: xcode8.3 # Tracvis default: OS X 10.12.6 and Xcode 8.3.3
env: TARGET=mac
before_install:
- eval "${MATRIX_EVAL}"
- git submodule update --init --remote --depth=3
script:
# - mkdir build && cd build && cmake -DBATCH_VERSION=ON -DUSE_OPENJPEG=ON -DUSE_JPEGLS=true -DZLIB_IMPLEMENTATION=Cloudflare .. && make && cd -
- mkdir build && cd build && cmake -DBATCH_VERSION=OFF -DUSE_OPENJPEG=ON -DUSE_JPEGLS=true -DZLIB_IMPLEMENTATION=Cloudflare .. && make && cd -
- export PATH=$PWD/build/bin:$PATH
- cd dcm_qa && ./batch.sh && cd -
- cd dcm_qa_nih && ./batch.sh && cd -
- cd dcm_qa_uih && ./batch.sh && cd -
before_deploy:
- zip -j dcm2niix_${TARGET}.zip build/bin/*
- sleep 300 # make sure appveyor deployment is done, thus proper release name is set
deploy:
provider: releases
api_key:
secure: sVIYRakcEQdMPEdGSSePtMVCMQvaohqV7NNzEErAgZ+b/4ofv2aPpJb5kNTv3JRl2FrPy7iXJ8lOUQ/95pqvimX6jv5ztksTNXtSMnHZNbjjWwIc99enPY+mSdWMO2lb9vGBWQ9GNfXjmk7MgtDHPjjygbuZfUw9fmGy4ocxkws=
file_glob: true
file: dcm2niix*.zip
skip_cleanup: true
on:
tags: true