forked from crosswalk-project/realsense-extensions-crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (46 loc) · 1.88 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
# Copyright (c) 2015 Intel Corporation. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
sudo: false
os:
- linux
language: android
android:
components:
- tools-24.1.2
- platform-tools-22
- build-tools-22.0.0
- android-22
env:
- XWALK_CHANNEL=canary XWALK_VERSION=17.45.432.0
before_install:
# Travis builder git clone REC into otcshare/realsense-extensions-crosswalk
# and change directory into it.
# Before install, we need to go back to the build root directory.
- cd ../..
install:
# Install depot_tools
- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git `pwd`/src/third_party/depot_tools
- export PATH="$PATH":`pwd`/src/third_party/depot_tools;
# Download Crosswalk
- curl -LO https://download.01.org/crosswalk/releases/crosswalk/android/${XWALK_CHANNEL}/${XWALK_VERSION}/crosswalk-${XWALK_VERSION}.zip && unzip crosswalk-${XWALK_VERSION}.zip && rm crosswalk-${XWALK_VERSION}.zip
- chmod a+x `pwd`/crosswalk-${XWALK_VERSION}/make_apk.py
- export PATH="$PATH":`pwd`/crosswalk-${XWALK_VERSION}
# Copy REC repo from Travis' git.checkout step
- cp -r otcshare/realsense-extensions-crosswalk src/extensions
# Sync the project
- echo "solutions=[{'name':'src','url':'https://github.com/crosswalk-project/crosswalk-extensions-sdk.git@origin/master','deps_file':'DEPS','managed':False,'custom_deps':{'extensions/realsense/android':'ssh://[email protected]/otcshare/realsense-extensions-crosswalk-android.git'},},]" > .gclient
- echo "target_os=['android']" >> .gclient
- echo "{'GYP_DEFINES':'OS=android target_arch=ia32',}" > chromium.gyp_env
- gclient sync
script:
- cd src
- python gyp_all
- ninja -C out/Release all
notifications:
email:
recipients:
on_success: always
on_failure: always