forked from notedit/webrtc-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (36 loc) · 1.76 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
branches:
only:
- master
sudo: true
language: cpp
matrix:
include:
- os: osx
osx_image: xcode10.1
before_install:
- git config branch.autosetupmerge always && git config branch.autosetuprebase always
- export PATH=$PATH:$(pwd)/depot_tools/
- export BASEDIR=$(pwd)
install:
- fetch --nohooks webrtc
- sed -i -e "s|'src/resources'],|'src/resources'],'condition':'rtc_include_tests==true',|" src/DEPS
- gclient sync
- cd $BASEDIR/src
- gn gen out/macos --args="is_debug=false target_cpu=\"x64\" rtc_include_tests=false"
- ninja webrtc -C out/macos
- mkdir out/macos/release && mkdir out/macos/release/lib && mkdir out/macos/release/include && cp out/macos/obj/libwebrtc.a out/macos/release/lib/
- find . -name '*.h' | xargs gcp --parents -t out/macos/release/include/
- ls -al out/macos/release/include/
- tar -zcvf out/macos/release.tar.gz out/macos/release/
script:
- echo "webrtc"
deploy:
provider: releases
api_key:
secure: ajXS1Nwh7JrQxybidrIIpn22m1OPtPuqnHhtGy1uJaLh7OqF7gD+bSCxjRlBUrVMwuymnGl8rBUrL7oyIwK5cG9mCUJJ9i9QCveyrYUlUIUeWMkuBXLNSV10aYzz4q2PjuaI8KwHGo6MJ1yMXhv7dn7/03vmFco7hjCgPS2G1lg8Nwc96ICwGVi4DLzD0Ysoj7qxwLv39I0eRJzC/xgN5e7lY955Lv/z/7GkAtNspJ/7ak3tGgQvBHB4cyqEpCJ1H8xAXMdlEdyal9gznWvcAW8084ZxdD8NDcaRAqWsNzSrdGZpQyDi8rnThDtpUkcyCI3HO9Cr4XY0bQhcW5tO5Dyb1qenIcF8dr/7oa7sjCBtlT9bnXYb6Um6jnwTP/OJc189T3FP3FXIVS9obKLH/e0qeiKe2qUkr9xYOa3VTKy1V4VbiVFYkWsNRTV1lqVLDv7w8X8kWvbJsyZ7T/n/DR2PZrq+9kogdx8jWnXF+Z7N5Y9QEZsA3cGAoDrW1rqViEEv0Qkj56EVrowzPYChThLUPJ5CsztfiYalYe1K04FperQjBYbwEgxXQGrA8FNhqQis1pE99RtxJjPrhgvHAVnFrOdWdqjsdVV22lJe56MPlPqvN00XHFADF8yBJ8ymxB5/qPQAQkXQT2+Gf0pvcIgzHnZEegOgIHq/zT+9iTc=
file_glob: true
file: $BASEDIR/src/out/macos/release.tar.gz
skip_cleanup: true
draft: true
on:
repo: notedit/webrtc-build