-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
39 lines (39 loc) · 1.64 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
language: cpp
env:
global: CPPFLAGS='-std=c++11'
matrix:
include:
- os: osx
env: TARGET=x86_64-apple-darwin
- os: linux
env: TARGET=x86_64-unknown-linux-gnu
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- perl
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libboost-all-dev;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y wget bzip2;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
script: "./build.sh"
after_success:
- mkdir -p $TRAVIS_BUILD_DIR/dist
- perl makerelease ; cp RELEASE/*.tar.gz $TRAVIS_BUILD_DIR/dist/
- cd cfg ; tar cvzf "cfg-${TRAVIS_BRANCH}-${TARGET}.tar.gz" cfg ;
cp "cfg-${TRAVIS_BRANCH}-${TARGET}.tar.gz" $TRAVIS_BUILD_DIR/dist/
- cd $TRAVIS_BUILD_DIR/dist ; pwd; ls
deploy:
provider: releases
api_key:
secure: WcmBEeA2xj3v/+z/+r2143h541IMd6XQNgoSAu7qBB88IrWhjy+CAHSpuSsGJwe2QF+EUoCS0qkyEq/2fnCAldMDa4aJirvDIdE+/seBQSP+PLmiZmyY/XwTx1Zkfe65nZxIMESHiHCOx5YLRr3Fc3vFzmNY9cpQKtlXocMKQ2VgNuMxSnPbARALI2n3qPU1NkysDvAKyA+0EBqFr0xU4D610p/cYSfKHdfaOw/swrNAQENGWkI0TiYyyTJD7lyVyAlrNUt43Ke4ekn2w6IjT88XjqI/kGWJ8S42Z8+itfLnCRgOardMgaV7rwrflEgrQWzqb3PQZpKxU76eOH/F9k4hplwOIgrhbh4lnJNLy0Nrx9B0LpJ6EYJ+7kXfdQqlCZ5/Y4ue5mjRLGTE1/XDWt+FE0prmVsAkWboCHz2rCUyqtMvmwU/MOwC0ABA+qUbqO+TlmrNNClHiKJ4bnUMQ6WK8KQg7ytKjSny0vVAROt5oP5SJWFy90cSkb+yMIfbDQgeWp6WkfK4IGvBbs7B3lLQDWWnWMZYqDMProLsTTWmLbmnSfeK9orHd/pzyuVEbgmWnRML8LdVfcRv4gz6DD9B5a05U89JL9pvWkNa8lbFuUxAK4tTxRcFuYJl11c7achOMPTVo+CE3dN62CM2QN2CnWEzHcvl3qjYAX9Gn2A=
file_glob: 'true'
file: $TRAVIS_BUILD_DIR/dist/*
on:
tags: true
skip_cleanup: 'true'