Skip to content
This repository was archived by the owner on Nov 9, 2021. It is now read-only.

Commit 060d94d

Browse files
authored
Merge pull request #2 from kami-/data-refactor
Add Travis build and release deployment
2 parents fc405ac + d3f9276 commit 060d94d

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.travis.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
language: cpp
2+
compiler:
3+
- gcc
4+
os:
5+
- linux
6+
matrix:
7+
include:
8+
- os: linux
9+
addons:
10+
apt:
11+
sources:
12+
- ubuntu-toolchain-r-test
13+
packages:
14+
- g++-5
15+
- cmake
16+
- zip
17+
- unzip
18+
- gcc-5-multilib
19+
- g++-5-multilib
20+
env:
21+
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
22+
23+
before_install:
24+
- eval "${MATRIX_EVAL}"
25+
install:
26+
- wget https://github.com/gabime/spdlog/archive/v0.10.0.zip
27+
- wget https://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.1.11-linux-glibc2.12-x86_64.tar.gz
28+
- unzip -qq v0.10.0.zip
29+
- mv spdlog-0.10.0/include/spdlog include
30+
- mkdir mysql
31+
- tar -zxf mysql-connector-c-6.1.11-linux-glibc2.12-x86_64.tar.gz -C mysql --strip-components=1
32+
script:
33+
- sed -i "s|^SET(MYSQL64_HOME.*|SET(MYSQL64_HOME \"$PWD\/mysql\")|" build/CMakeLists.txt
34+
- cd build
35+
- cmake . -DCMAKE_C_FLAGS=-m64 -DCMAKE_CXX_FLAGS=-m64
36+
- make
37+
- mv libr3_extension_x64.so r3_extension_x64.so
38+
- if [ ! -z "$TRAVIS_TAG" ]; then zip "R3-Extension-$TRAVIS_TAG-Linux.zip" r3_extension_x64.so; fi
39+
deploy:
40+
provider: releases
41+
api_key:
42+
secure: "$GH_RELEASE_TOKEN"
43+
file: "R3-Extension-$TRAVIS_TAG-Linux.zip"
44+
skip_cleanup: true
45+
on:
46+
tags: true

0 commit comments

Comments
 (0)