-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
91 lines (87 loc) · 2.14 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
language: node_js
node_js: "12"
jobs:
include:
-
os: osx
name: Mac - Libtorrent Build
osx_image: xcode11.2
addons:
homebrew:
packages: ['ninja', 'mpv']
update: true
env:
- USE_HARD_LINKS=false # From https://github.com/electron-userland/electron-builder/issues/3179
install:
- npm install
script:
- "npm run collect:dylibs"
- npm run lint
- npm run pack
# - npm run test
-
os: linux
name: Linux - Libtorrent Build
dist: bionic
addons:
apt:
update: true
packages:
- g++-5
- gcc-5
- ninja-build
- libboost-system-dev
- libmpv1
- libavformat-dev
env:
- CC=gcc-5
- CXX=g++-5
- USE_HARD_LINKS=false # From https://github.com/electron-userland/electron-builder/issues/3179
services:
- xvfb
before_script:
- "export DISPLAY=:99.0"
install:
- npm install
script:
- npm run lint
- npm run pack
- npm run test
-
os: linux
name: Linux - Libtorrent Pre-installed
dist: focal
addons:
apt:
update: true
packages:
- ninja-build
- libboost-system-dev
- libmpv1
- libavformat-dev
env:
- CC=gcc
- CXX=g++
- CMAKE_C_COMPILER=gcc
- CMAKE_CXX_COMPILER=g++
- USE_HARD_LINKS=false # From https://github.com/electron-userland/electron-builder/issues/3179
services:
- xvfb
before_script:
- "export DISPLAY=:99.0"
before_install:
# Installing Libtorrent
- git clone --branch=RC_1_2 https://github.com/arvidn/libtorrent
- cd libtorrent
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -G Ninja ..
- ninja -j4
- sudo ninja install
install:
- npm install
script:
- npm run lint
- npm run pack
- npm run test
notifications:
email: false