-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (53 loc) · 1.82 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
language: cpp
arch:
- arm64
- amd64
dist: bionic
compiler:
- gcc
before_install:
- echo $arch
- sudo apt-get update
- sudo apt-get install -y build-essential pkg-config automake libtool git zlib1g-dev
#- sudo apt-get install -y libboost-dev libboost-system-dev libboost-chrono-dev libboost-random-dev libssl-dev libgeoip-dev
- sudo apt-get install -y libboost1.62-dev libboost-system1.62-dev libboost-chrono1.62-dev libboost-random1.62-dev libssl-dev libgeoip-dev
install:
- git clone https://github.com/arvidn/libtorrent.git
script:
- cd libtorrent
- libtorrentlatestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
- echo checking out ${libtorrentlatestTag}
- git checkout ${libtorrentlatestTag}
- ./autotool.sh
- ./configure --disable-debug --enable-encryption CXXFLAGS="-std=c++14"
- make clean && make -j$(nproc)
- sudo make install
- make install DESTDIR=$PWD/_install
- tar cvf libtorrent.tar _install
- sudo apt-get install -y qtbase5-dev qttools5-dev-tools libqt5svg5-dev
- cd ..
- mkdir deploy
- ARCH=`uname -m`
- mv libtorrent/libtorrent.tar deploy/libtorrent_$libtorrentlatestTag_$ARCH.tar
- git clone https://github.com/qbittorrent/qBittorrent
- cd qBittorrent
- latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
- echo checking out ${latestTag}
- git checkout ${latestTag}
- ./configure --disable-gui CXXFLAGS="-std=c++14"
- make clean && make -j$(nproc)
# - make install DESTDIR=$PWD/_install
- ./src/qbittorrent-nox -v
- sudo make install
- tar cvf qbittorrent-nox.tar /usr/local/bin/qbittorrent-nox
- mv qbittorrent-nox.tar ../deploy/qbittorrent-nox_$latestTag_$ARCH.tar
- cd ..
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: deploy/*
skip_cleanup: true
on:
tags: false
all_branches: true