@@ -2,12 +2,55 @@ language: objective-c
2
2
before_install :
3
3
- MODULE_ROOT=$PWD
4
4
install :
5
- - mkdir -p /Library/Application\ Support/Titanium/
6
- - wget http://api.appcelerator.net/p/v1/release-download?token=y4qAVWK3 -O /Library/Application\ Support/Titanium/mobilesdk-1.6.0-osx.zip
5
+ - mkdir -p /Library/Application\ Support/Titanium/sdks/
6
+ - mkdir -p python
7
+
8
+ # install py markdown
9
+ - export PYTHONPATH=${PYTHONPATH}:$PWD/support
10
+
11
+ # Android SDK seems to require newer version of SDK
12
+ - wget http://api.appcelerator.net/p/v1/release-download?token=34yycjh6 -O /Library/Application\ Support/Titanium/mobilesdk-2.1.3.GA-osx.zip
7
13
- cd /Library/Application\ Support/Titanium/
8
- - unzip -o mobilesdk-1.6.0-osx.zip
14
+ - unzip -o mobilesdk-2.1.3.GA-osx.zip
15
+
16
+
17
+ # IOS uses v.1.6
18
+ # - wget http://api.appcelerator.net/p/v1/release-download?token=y4qAVWK3 -O /Library/Application\ Support/Titanium/mobilesdk-1.6.0-osx.zip
19
+ # - cd /Library/Application\ Support/Titanium/
20
+ # - unzip -o mobilesdk-1.6.0-osx.zip
21
+
22
+ # Install Android SDK
23
+ - cd /Library/Application\ Support/Titanium/sdks/
24
+ - wget http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip
25
+ - unzip -o android-sdk_r22.6.2-macosx.zip
26
+ - export ANDROID_HOME=${PWD}/android-sdk-macosx
27
+
28
+ - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
29
+
30
+ # Install required Android components.
31
+ - echo "y" | android update sdk --filter platform-tools,android-8,android-10,addon-google_apis-google-10,extra-android-support,$ANDROID_SDKS --no-ui --force
32
+
33
+ # Install require Android NDK
34
+ - cd $MODULE_ROOT
35
+ # NDK r9d
36
+ # - wget http://dl.google.com/android/ndk/android-ndk-r9d-darwin-x86.tar.bz2
37
+ # - tar xzf android-ndk-r9d-darwin-x86.tar.bz2
38
+ # - export ANDROID_NDK=${PWD}/android-ndk-r9d
39
+
40
+ # NDK r8c
41
+ - wget http://dl.google.com/android/ndk/android-ndk-r8c-darwin-x86.tar.bz2
42
+ - tar xzf android-ndk-r8c-darwin-x86.tar.bz2
43
+ - export ANDROID_NDK=${PWD}/android-ndk-r8c
44
+
45
+ # Copy build.properties from support to android folder
46
+ - cp $MODULE_ROOT/support/build.properties $MODULE_ROOT/android/
9
47
before_script :
10
48
- cd $MODULE_ROOT
11
49
script :
12
- - cd . /ios/
50
+ - cd $MODULE_ROOT /ios/
13
51
- ./build.py
52
+
53
+ - cd $MODULE_ROOT/android/
54
+ - ant clean
55
+ - ant
56
+
0 commit comments