This repository has been archived on 2020-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon-cpp/.travis.yml

46 lines
1.7 KiB
YAML
Raw Normal View History

2018-03-12 09:18:49 +01:00
language: cpp
compiler:
- gcc
- clang
dist: trusty
addons:
apt:
2018-03-12 09:53:12 +01:00
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:cspensky/sda'
2018-03-12 09:18:49 +01:00
packages:
2018-03-12 09:53:12 +01:00
- g++-5
2018-03-12 09:18:49 +01:00
- libcurlpp-dev
- libjsoncpp-dev
2018-03-12 10:02:48 +01:00
before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 60
2018-03-12 09:18:49 +01:00
script:
- mkdir -p build && cd build
2018-04-01 05:19:17 +02:00
- cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
2018-03-12 10:14:24 +01:00
- make VERBOSE=1
2018-03-12 11:39:49 +01:00
- make install DESTDIR=install
2018-04-01 05:07:21 +02:00
- ctest ..
2018-03-12 11:21:34 +01:00
- cd ..
before_deploy:
2018-03-12 11:48:41 +01:00
- sudo apt-get install rpm
- cd build
2018-03-12 12:39:38 +01:00
- cp -v ../packages/gentoo/mastodon-cpp-0.0.0.ebuild mastodon-cpp-${TRAVIS_TAG}.ebuild
- cmake -DWITH_DEB=ON ..
- make package
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
- make package
deploy:
provider: releases
api_key:
2018-03-12 12:32:39 +01:00
secure: "rdEd2cytMZb6oS5DBuGKjaQoccspMWlrlr/fKpdJkhfLgFOXI6lWSEvtWSB8Gmej9J++0dZPGbQ6fhRuSRwMa7LM3c2yM7kqhfeKcQiFgol33UbMBPZU/OkohJJl49Bp32qwLUQpfeL7B6ukVkxv7XPetE0ks+29vGsEWLowjLj3jEvHTzucgvxblwCdshekYnMUH+4lkLoSqTenCjjTcRbKI7yLLlGSa92PudzrfeAsz0lV4GiXiMIffTPP9dOfi4ceRB4qkKxb35CZbZUjxlZoppghh1uFvi9GYsGseIQl/iGvOtzoUj6c5AoTEZeDa96pD1x/QpjVk2lPYqtmzfIgzIueQW/BUddwaUbzw/8dVTXMsgy3ocTICqPic8LxNWjMGbt/v2E7wiY+TitNWqoNlgoZQjrlrYQ/21yoilvGfpnqRllzr4ofiHq4CI94kgxtuhd3De4O/aJvbrxj8liToqHSwX/taJHwV5rQ2Afl9vhTFgPWzyAbYXFNuulmG2ew6Q1ywyf+GXCPBk22w0IvLom5lqtFD/WSS0LFTzstDiDQEg/fnOo7bGzcQYQR5jq8hfj9EDaIZYek5BpNLeRmkqIbvtu6vwy4ufx3MIDR+69H1Xn5BlpXdhII7r4ZRKlUiw4mqHm76LPwoxLoWL36a+mySOgBxjAgJQdifYU="
file:
2018-03-12 12:32:39 +01:00
- "mastodon-cpp-${TRAVIS_TAG}.ebuild"
- "libmastodon-cpp_${TRAVIS_TAG}-0_amd64.deb"
- "libmastodon-cpp-${TRAVIS_TAG}-0.x86_64.rpm"
skip_cleanup: true
prerelease: true
on:
tags: true
condition: $CC = gcc