forked from xenium-project/xenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (71 loc) · 2.23 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
language: cpp
cache:
ccache: true
directories:
- "/home/travis/toolchain"
matrix:
include:
- os: linux
dist: bionic
compiler: gcc
addons:
apt:
sources:
- sourceline: ppa:mhier/libboost-latest
- ubuntu-toolchain-r-test
packages:
- libboost-all-dev
- libssl-dev
- g++-8
- gcc-8
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- LABEL="linux"
- _DEPLOYABLE="true"
- STRIP="strip"
- os: linux
dist: bionic
compiler: gcc
addons:
apt:
sources:
- sourceline: ppa:mhier/libboost-latest
- ubuntu-toolchain-r-test
packages:
- libboost-all-dev
- libssl-dev
- g++-7
- gcc-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- LABEL="linux-g++-7"
- STRIP="strip"
before_install:
- eval $MATRIX_EVAL
script:
- eval $MATRIX_EVAL
- mkdir build && cd build
- cmake -DARCH=default -DCMAKE_BUILD_TYPE=Release -DSTATIC=true ..
- make -j2
before_deploy:
- if [[ "${TRAVIS_TAG}" == "" ]]; then export TRAVIS_TAG=${TRAVIS_COMMIT} ; fi
- cd src
- ${STRIP} Xenium*
- rm -rf xenium-${TRAVIS_TAG}
- mkdir xenium-${TRAVIS_TAG}
- cp Xenium* xenium-${TRAVIS_TAG}/
- cp ../../LICENSE xenium-${TRAVIS_TAG}/
- tar cvfz xenium-${TRAVIS_TAG}-${LABEL}.tar.gz xenium-${TRAVIS_TAG}/
deploy:
provider: releases
edge: true
api_key:
secure: iir04+A2oVuDxTapN697PoT9VG0qXtmb/U4EqdgnhTlQo/SD44wQzueyqmgQbw7YPT3iFoCG78JHgeEbQLlxrSB1G9PG79bK4Cqo8LlI5YRb1vpQwOtHnxbguNkmjzW31KlXIxxQMXu/ED9L+v5nhwMcyeghAn2rEOgpPFRPV6am9Zq1kl5SeY7vOkEeK+bT7hl7fFHt2uZwhq9fK0BM68L0pXKvBQNU/7yDOMZ7064echbWrptdj1ZZh6UAunCWEIH17ITvEgZ3YxdqGilbldswsD7gTgV8W6ckB1T/g3VJPb70LYk6LfIv3UKlY5UzTN5sWNBDSfKVdVnNN9XFrOVRhgasVH+sQIuxEdUUJTj0EJV11iVvmMAZ9A4KrQHSLoepiGprqtQ1TWfn9AKvhOQyFY+cM8p4EjdTwoJpr00gSF8sObkLjtWdwxJzUwi0vYyRU7g92Zvnb6isD4XU6PzZaJIBfKUbaMXZEbbVVrQjt8dQ+35t0sEq0L8qi1MbUCIL4Vd6wR3HCGl9CQ8L9FlU7mFkBMzPIv+SVHlgX+JiupE3Re9vYEStG4fyMW1VZgfuInf1ZE9nffYcT40o5z96YWAT6rM19f5vjjvmJDWwkUVciZhBtiVUJR/b/DKrpGUl1s6L7pxmucwq/hbzXMY52aFtPQn5Ro8l/1tOhks=
file:
- xenium-${TRAVIS_TAG}-${LABEL}.tar.gz
cleanup: false
on:
repo: xenium-project/xenium
condition: "$_DEPLOYABLE = true"
tags: true
all_branches: true