This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
69 lines (58 loc) · 2.16 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
# Copyright (c) 2016 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:
- build-tools-22.0.1
- android-23
env:
matrix:
- XWALK_CHANNEL=canary XWALK_VERSION=18.46.466.0
before_install:
- cd ..
install:
- git config --global user.email "[email protected]"
- git config --global user.name "Minggang Wang"
# 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
# Install GYP
- git clone https://chromium.googlesource.com/external/gyp `pwd`/src/third_party/gyp
- export PATH="$PATH":`pwd`/src/third_party/gyp
# 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}
- export PATH="$PATH":/usr/local/android-sdk/build-tools/22.0.1
- export GYP_GENERATORS='ninja'
before_deploy:
- zip -j iap.zip out/Default/gen/iap/iap.jar out/Default/gen/iap/iap.js out/Default/gen/iap/iap.json
- zip -j fingerprint.zip out/Default/gen/fingerprint/fingerprint.jar out/Default/gen/fingerprint/fingerprint.js out/Default/gen/fingerprint/fingerprint.json
deploy:
provider: releases
# This user name will be changed to the one, which doesn't represent as a developer.
user: [email protected]
api_key:
secure: FcDsD//0uWoGWE291MMHMbEiUXpmC5vNmwB93h/3h/bB6TqyWrRoeBdUYuMvLpAzh40otzqQfjrSNo4WhX5jqxIrJTV7DX3GBhvuWigXRjdL7UpfTu8H75LGAa3YMx6EYtJNMzjNUvBXv125oQeEBLMqeD4TpnTL7/dFpEZQnTU=
file:
- iap.zip
- fingerprint.zip
skip_cleanup: true
on:
tags: true
script:
- cd crosswalk-android-extensions
- gyp --depth=. all.gyp
- ninja -C out/Default pack_iap_jars
- ninja -C out/Default fingerprint
notifications:
email:
recipients:
on_success: always
on_failure: always