-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
96 lines (88 loc) · 3.43 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
language: cpp
branches:
only:
- master
- /v\d+\.\d+\.\d+/
matrix:
include:
- os: linux
dist: xenial
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- BUILD_CONFIGURATION=Debug
- VIRT86_COMPILER_NAME=GCC7
- VIRT86_SYSTEM_NAME=Linux
- os: linux
dist: xenial
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- BUILD_CONFIGURATION=Release
- VIRT86_COMPILER_NAME=GCC7
- VIRT86_SYSTEM_NAME=Linux
- os: osx
osx_image: xcode10.1
env:
- BUILD_CONFIGURATION=Debug
- VIRT86_COMPILER_NAME=LLVM
- VIRT86_SYSTEM_NAME=Mac
- os: osx
osx_image: xcode10.1
env:
- BUILD_CONFIGURATION=Release
- VIRT86_COMPILER_NAME=LLVM
- VIRT86_SYSTEM_NAME=Mac
before_install:
- eval "${MATRIX_EVAL}"
- VIRT86_ARTIFACT_PATH="${TRAVIS_BUILD_DIR}/build/_artifact"
script:
- mkdir build
- cd build
- mkdir ${VIRT86_ARTIFACT_PATH}
- cp ${TRAVIS_BUILD_DIR}/README.md ${VIRT86_ARTIFACT_PATH}
- cp ${TRAVIS_BUILD_DIR}/LICENSE ${VIRT86_ARTIFACT_PATH}
- cmake .. -DCMAKE_BUILD_TYPE=${BUILD_CONFIGURATION} -DCMAKE_INSTALL_PREFIX=${VIRT86_ARTIFACT_PATH}
- make install
- |
if [[ -z "${TRAVIS_TAG}" ]]; then
VIRT86_VERSION=1.2.0-b${TRAVIS_BUILD_NUMBER};
else
VIRT86_VERSION=$(echo ${TRAVIS_TAG} | cut -c2-);
fi
- VIRT86_PACKAGE_NAME=virt86-${VIRT86_VERSION}-${VIRT86_SYSTEM_NAME}-${VIRT86_COMPILER_NAME}-x64-${BUILD_CONFIGURATION}.tar.gz
- cd ${VIRT86_ARTIFACT_PATH}
- tar -zcvf "${TRAVIS_BUILD_DIR}/build/${VIRT86_PACKAGE_NAME}" *
- echo Created package ${VIRT86_PACKAGE_NAME}
- cd ${TRAVIS_BUILD_DIR}
deploy:
- provider: bintray
file: bintray.json
user: strikerx3
key:
secure: Bs10p5Nan5V//6uuRsBeyucc8wlbYdpBwLCYZdINTrTHyVu5Epwdt+wPaRUxTYeFha6ujk+YQWNBajRVh5g+A8KxLxy+ItHBmdgVK53X2ev5pvVVUryTfDxiyrHsvs1DUTKvwkWqPNCAvXwetXz+r3XF04xzY/PyCtFWBNjcB2IG2qeHbqdjx/QChCEw6+tAEVyw0obbfZOlRZbyTrbjQSotj2vsGnfuk29Pqmf5i06y+vDPEqQm5pAi0HRMWV/8MHnY3hWlqbg2qTB7rRXWyhkn4sCntwkT/lh+PZEA9RPuRGEQdZx0L3KW0r+KeJTCOAsFZFG7kXwMSpRaTJeYjvmwf8tDkMCTDcQvnoQ/o7cWkWgWFUYynoCGZdNEWhykCzpp10lN5sH6Sy9kzQIE6UBn6iCSaIqt6yfn3dpuMH50ktdnImMYZiwgCBXds8NeobzYVxASWWEECHc5vVYhwb5ertZzGwO5XT7oFb5T0fdKQENQ3vBsy64AWaQhdwjrXBWty6JJpEGCh5n4GEPya7pm4NrSlyzgI+lq1AZAxiWAPbBI//3RkXcOek7Dnl05HPjy5uTHeVwd7Ewio2P3t1IPzWi3LCwgupaxhvQ9VBoPFIbH1M6Sh6e6CQyMqMo5ZDnSOzNko3suqsq5NMyGE4Dbh6sK3nzP02E7Ezfi6Yc=
skip_cleanup: true
dry_run: false
on:
branch: master
- provider: bintray
file: bintray.json
user: strikerx3
key:
secure: Bs10p5Nan5V//6uuRsBeyucc8wlbYdpBwLCYZdINTrTHyVu5Epwdt+wPaRUxTYeFha6ujk+YQWNBajRVh5g+A8KxLxy+ItHBmdgVK53X2ev5pvVVUryTfDxiyrHsvs1DUTKvwkWqPNCAvXwetXz+r3XF04xzY/PyCtFWBNjcB2IG2qeHbqdjx/QChCEw6+tAEVyw0obbfZOlRZbyTrbjQSotj2vsGnfuk29Pqmf5i06y+vDPEqQm5pAi0HRMWV/8MHnY3hWlqbg2qTB7rRXWyhkn4sCntwkT/lh+PZEA9RPuRGEQdZx0L3KW0r+KeJTCOAsFZFG7kXwMSpRaTJeYjvmwf8tDkMCTDcQvnoQ/o7cWkWgWFUYynoCGZdNEWhykCzpp10lN5sH6Sy9kzQIE6UBn6iCSaIqt6yfn3dpuMH50ktdnImMYZiwgCBXds8NeobzYVxASWWEECHc5vVYhwb5ertZzGwO5XT7oFb5T0fdKQENQ3vBsy64AWaQhdwjrXBWty6JJpEGCh5n4GEPya7pm4NrSlyzgI+lq1AZAxiWAPbBI//3RkXcOek7Dnl05HPjy5uTHeVwd7Ewio2P3t1IPzWi3LCwgupaxhvQ9VBoPFIbH1M6Sh6e6CQyMqMo5ZDnSOzNko3suqsq5NMyGE4Dbh6sK3nzP02E7Ezfi6Yc=
skip_cleanup: true
dry_run: false
on:
tags: true