2019-06-14 12:05:03 +00:00
|
|
|
language: node_js
|
|
|
|
node_js: "12"
|
|
|
|
|
|
|
|
jobs:
|
2019-06-14 11:28:07 +00:00
|
|
|
include:
|
2019-06-14 12:05:03 +00:00
|
|
|
-
|
|
|
|
os: osx
|
2020-04-14 01:49:07 +00:00
|
|
|
name: Mac - Libtorrent Build
|
2020-01-16 12:27:05 +00:00
|
|
|
osx_image: xcode11.2
|
|
|
|
addons:
|
|
|
|
homebrew:
|
2020-04-14 01:49:07 +00:00
|
|
|
packages: ['ninja', 'mpv']
|
2020-01-16 12:27:05 +00:00
|
|
|
update: true
|
2020-04-14 01:49:07 +00:00
|
|
|
env:
|
|
|
|
- USE_HARD_LINKS=false # From https://github.com/electron-userland/electron-builder/issues/3179
|
2019-10-28 16:32:06 +00:00
|
|
|
install:
|
|
|
|
- npm install
|
2019-06-14 12:05:03 +00:00
|
|
|
script:
|
2020-04-14 01:49:07 +00:00
|
|
|
- "npm run collect:dylibs"
|
2019-06-14 12:05:03 +00:00
|
|
|
- npm run lint
|
2019-07-03 20:38:34 +00:00
|
|
|
- npm run pack
|
2019-07-03 23:23:03 +00:00
|
|
|
# - npm run test
|
2019-06-14 11:28:07 +00:00
|
|
|
|
2019-06-14 12:05:03 +00:00
|
|
|
-
|
|
|
|
os: linux
|
2020-04-14 01:49:07 +00:00
|
|
|
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
|
2021-08-21 13:59:13 +00:00
|
|
|
dist: focal
|
2019-06-14 11:41:05 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2019-10-28 16:32:06 +00:00
|
|
|
update: true
|
2019-06-14 11:41:05 +00:00
|
|
|
packages:
|
2019-10-28 16:32:06 +00:00
|
|
|
- ninja-build
|
|
|
|
- libboost-system-dev
|
2020-01-16 00:10:42 +00:00
|
|
|
- libmpv1
|
|
|
|
- libavformat-dev
|
2020-04-14 01:49:07 +00:00
|
|
|
env:
|
2021-08-21 15:05:15 +00:00
|
|
|
- CC=gcc
|
|
|
|
- CXX=g++
|
|
|
|
- CMAKE_C_COMPILER=gcc
|
|
|
|
- CMAKE_CXX_COMPILER=g++
|
2020-04-14 01:49:07 +00:00
|
|
|
- USE_HARD_LINKS=false # From https://github.com/electron-userland/electron-builder/issues/3179
|
2019-08-20 13:57:24 +00:00
|
|
|
services:
|
|
|
|
- xvfb
|
2019-07-03 20:38:34 +00:00
|
|
|
before_script:
|
|
|
|
- "export DISPLAY=:99.0"
|
2020-04-14 01:49:07 +00:00
|
|
|
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
|
2019-10-28 16:32:06 +00:00
|
|
|
install:
|
|
|
|
- npm install
|
2019-06-14 11:28:07 +00:00
|
|
|
script:
|
|
|
|
- npm run lint
|
2019-07-03 20:38:34 +00:00
|
|
|
- npm run pack
|
|
|
|
- npm run test
|
2019-06-14 12:29:47 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|