-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (28 loc) · 975 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
27
28
29
30
31
32
33
34
compiler:
- clang
- gcc
os: linux
before_install:
- sudo add-apt-repository "deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe" # switch to Ubuntu Trusty
- sudo apt-get update -qq
- sudo apt-get install -qq g++ clang cmake libpopt-dev botan1.10-dev libasio-dev libboost-system-dev # install dependencies
script:
- (cd src/libs/libscrypt && make)
- package=tor-onions-common_$(grep -m 1 -o '(.*)' debian/changelog | cut -c 2- | rev | cut -c 2- | rev)
- tar -czf $package.orig.tar.gz src/
- cp -rl debian src/debian
- cd src/
- dpkg-buildpackage -rfakeroot -us -uc # compile into .deb
after_success:
- sudo dpkg -i ../$package\_amd64.deb # install .deb
language: cpp
notifications:
email: false
irc:
channels:
- "irc.oftc.net#tor-bots"
on_success: change
on_failure: change
template:
- "%{repository} (%{branch} - %{commit}) @kernelcorn %{message}"
- "Build details : %{build_url}"