-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (53 loc) · 1.61 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
# Handle git submodules yourself
git:
submodules: false
language: android
jdk:
- oraclejdk8
android:
components:
- tools
- build-tools-23.0.1
- android-23
- extra-android-m2repository
before_install:
# Android SDK configuration
- printenv
- export ANDROID_SDK_ROOT=/usr/local/android-sdk
- export PATH=$PATH:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools
# Android NDK configuration
- printenv
- echo `pwd`
- wget https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip
- chmod a+x android-ndk-r14b-linux-x86_64.zip
- unzip -qq android-ndk-r14b-linux-x86_64.zip -d $ANDROID_SDK_ROOT/ndk-bundle
- ls -al $ANDROID_SDK_ROOT/ndk-bundle/android-ndk-r14b
- export NDK_ROOT=$ANDROID_SDK_ROOT/ndk-bundle/android-ndk-r14b
- echo $NDK_ROOT
- export PATH=$PATH:$NDK_ROOT
- echo $PATH
- git clone --branch cocos2d-x-3.14.1 http://github.com/cocos2d/cocos2d-x.git
- cd ./cocos2d-x
- python download-deps.py -r yes
- git submodule update --init
# - mkdir ~/.cocos
# - cp ../local_cfg.json ~/.cocos/local_cfg.json
# - cat ~/.cocos/local_cfg.json
- cd ./tools/cocos2d-console/
- python download-bin.py -r yes
- cd ../../
- export COCOS_CONSOLE_ROOT=`pwd`/tools/cocos2d-console/bin
- export PATH=$PATH:$COCOS_CONSOLE_ROOT
- export COCOS_TEMPLATES_ROOT=`pwd`/templates
- export PATH=$PATH:$COCOS_TEMPLATES_ROOT
- export ANT_ROOT=/usr/share/ant/bin
- export PATH=$PATH:$ANT_ROOT
- cd ..
- echo `pwd`
- printenv
# Do you agree to sent the data? [Y]es, [N]o
- yes Y | cocos -v
script:
- cocos compile -p android
notifications:
email: false