-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (26 loc) · 927 Bytes
/
.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
language: cpp
compiler: gcc
dist: trusty
before_install:
# C++14
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
# C++14
- sudo apt-get install -qq g++-6
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
before_script:
- sudo apt-get install libboost-test-dev -y
script:
# Install Boost Test Framework 1.54
#- sudo apt-get install -y -qq libboost-test1.54-dev
#- cmake -DCMAKE_BUILD_TYPE=Release .
- cmake .
- cmake --build .
- cmake --build . --target test
- cmake --build . --target package
deploy:
provider: script
skip_cleanup: true
script:
- curl -T IpFilter-0.0.$TRAVIS_BUILD_NUMBER-Linux.deb -umohammadwolf95:$BINTRAY_API_KEY "https://api.bintray.com/content/mohammadwolf95/ip_filter/ip_filters_package/$TRAVIS_BUILD_NUMBER/IpFilter-0.0.$TRAVIS_BUILD_NUMBER-Liux.deb;deb_distribution=trusty;deb_component=main;deb_architecture=amd64;publish=1"