-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
101 lines (88 loc) · 2.45 KB
/
Copy path.travis.yml
File metadata and controls
101 lines (88 loc) · 2.45 KB
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
# Build matrix / environment variable are explained on:
# http://about.travis-ci.org/docs/user/build-configuration/
# This file can be validated on: http://lint.travis-ci.org/
sudo: false
dist: trusty
language: cpp
matrix:
include:
- os: linux
compiler: gcc
env:
- BUILD_TYPE=relwithdebinfo
- GCC_VERSION=7
- CC=gcc-7
- CXX=g++-7
addons:
apt:
# List of whitelisted in travis packages for ubuntu-trusty can be found here:
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-trusty
# List of whitelisted in travis apt-sources:
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-5.0']
packages: ['cmake', 'autoconf', 'automake', 'gcc-7', 'g++-7', 'clang-5.0']
#- os: osx
# compiler: gcc
# env:
# - BUILD_TYPE=relwithdebinfo
# addons:
# apt:
# sources:
# packages: ['cmake', 'autoconf', 'automake', 'gcc-7', 'g++-7', 'clang-5.0']
install:
- cmake --version
before_install:
- |
if [ "$TRAVIS_OS_NAME" == "osx" ] ; then
#brew update
#brew install libtool
echo osx
fi
if [ "$TRAVIS_OS_NAME" == "linux" ] ; then
echo linux
fi
before_script:
- |
if [ "$TRAVIS_OS_NAME" == "osx" ] ; then
#glibtoolize
#aclocal
#autoheader
#autoconf
#automake --add-missing
#sh configure
echo osx
fi
if [ "$TRAVIS_OS_NAME" == "linux" ] ; then
#libtoolize
#aclocal
#autoheader
#autoconf
#automake --add-missing
#sh configure
echo linux
fi
script:
- mkdir -p build && pushd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- cmake --build .
- popd
after_success:
- echo success
after_failure:
- echo failure
before_deploy:
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
- echo deploy start
deploy:
provider: releases
api_key:
secure: $GITHUB_ACCESS_TOKEN
file: bin/dmmagicenumtest
skip_cleanup: true
on:
branch: master
tags: false
all_branches: true
condition: $TRAVIS_OS_NAME == "linux" && $TRAVIS_COMMIT_MESSAGE == "BUILD_DEPLOY" && $BUILD_TYPE == "RelWithDebInfo"
after_deploy:
- echo deploy end