Skip to content
This repository was archived by the owner on Jan 13, 2020. It is now read-only.

Commit eb45eb5

Browse files
committed
Travis configuration.
1 parent 8921262 commit eb45eb5

File tree

10 files changed

+111
-30
lines changed

10 files changed

+111
-30
lines changed

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
language:
2+
- java
3+
jdk:
4+
- oraclejdk7
5+
- openjdk7
6+
env:
7+
global:
8+
- ANDROID_ABI=armeabi-v7a
9+
- ANDROID_BUILD_TOOLS_VERSION=19.0.1
10+
- ANDROID_COMPILE_SDK_VERSION=19
11+
- ANDROID_MIN_SDK_VERSION=15
12+
- ANDROID_TARGET_SDK_VERSION=19
13+
- ANDROID_SDK_TGZ=android-sdk_r22-linux.tgz
14+
matrix:
15+
- ANDROID_SDK_VERSION=19 ANDROID_SYSTEM_IMAGE_PACKAGE=41
16+
- ANDROID_SDK_VERSION=18 ANDROID_SYSTEM_IMAGE_PACKAGE=43
17+
- ANDROID_SDK_VERSION=17 ANDROID_SYSTEM_IMAGE_PACKAGE=45
18+
- ANDROID_SDK_VERSION=16 ANDROID_SYSTEM_IMAGE_PACKAGE=48
19+
- ANDROID_SDK_VERSION=15 ANDROID_SYSTEM_IMAGE_PACKAGE=51
20+
before_install:
21+
# Install base Android SDK
22+
- sudo apt-get update -qq
23+
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi
24+
- wget http://dl.google.com/android/$ANDROID_SDK_TGZ
25+
- tar xzf $ANDROID_SDK_TGZ
26+
- export ANDROID_HOME=$PWD/android-sdk-linux
27+
- export PATH=${PATH}:${ANDROID_HOME}/build-tools:${ANDROID_HOME}/platform-tools:${ANDROID_HOME}/tools
28+
29+
# Install required Android components.
30+
- echo y | android update sdk --all --force --no-ui --filter android-$ANDROID_COMPILE_SDK_VERSION,android-$ANDROID_MIN_SDK_VERSION,android-$ANDROID_TARGET_SDK_VERSION,android-$ANDROID_SDK_VERSION
31+
- echo y | android update sdk --all --force --no-ui --filter build-tools-$ANDROID_BUILD_TOOLS_VERSION,platform-tools,extra-android-support
32+
- echo y | android update sdk --all --force --no-ui --filter $ANDROID_SYSTEM_IMAGE_PACKAGE
33+
34+
# Create and start emulator
35+
- echo no | android create avd --force -n test -t android-$ANDROID_SDK_VERSION --abi $ANDROID_ABI
36+
- emulator -avd test -no-skin -no-audio -no-window &
37+
38+
# Enabling execution for gradlew and emulator listener
39+
- chmod +x gradlew
40+
- chmod +x wait_for_emulator
41+
before_script:
42+
# Make sure the emulator has started before running tests
43+
- ./wait_for_emulator

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,36 @@
22

33
inAndroid is a modern framework that includes everything needed to create database-backed Android
44
applications according to the
5-
[Model-View-Controller (MVC)](http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)
5+
[Model-View-Controller (MVC)](http://en.wikipedia.org/wiki/Model-view-controller)
66
pattern. The initial version of the framework is entirely focused on the model layer.
77

8-
Understanding the MVC pattern is key to understanding Rails. MVC divides your application into three
9-
layers, each with a specific responsibility.
8+
Understanding the MVC pattern is key to understanding inAndroid. MVC divides your application into
9+
three layers, each with a specific responsibility.
1010

1111
The _Model layer_ represents your domain model (such as Account, Product, Person, Post, etc.) and
1212
encapsulates the business logic that is specific to your application. In inAndroid, database-backed
1313
model classes are derived from `ActiveRecord` class. Active Record allows you to present the data
1414
from database rows as objects and embellish these data objects with business logic methods. Although
15-
most inAndroid models are backed by a database, models can also be ordinary Ruby classes, or Ruby
15+
most inAndroid models are backed by a database, models can also be ordinary Java classes, or Java
1616
classes that implement a set of interfaces as provided by the Active Model module. You can read more
1717
about Active Record in its [README](active-record/README.md).
1818

1919
Active Record, and Action Request can each be used independently outside inAndroid. In addition to
2020
them, inAndroid also comes with Active Support ([README](active-support/README.md)), a collection of
2121
utility classes and standard library extensions that are useful for inAndroid, and may also be used
2222
independently outside the framework.
23+
24+
## Contributing
25+
26+
We encourage you to contribute to all of our frameworks! Please check out the
27+
[Contributing to inFrameworks page](http://www.inframeworks.org/contributing)
28+
for guidelines about how to proceed.
29+
[Join us!](http://www.inframeworks.org/contributing/contributors)
30+
31+
## Code Status
32+
33+
* [![Build Status](https://api.travis-ci.org/inframeworks/inandroid.png)](https://travis-ci.org/inframeworks/inandroid)
34+
35+
## License
36+
37+
inAndroid is released under the [MIT License](http://www.opensource.org/licenses/MIT).

action-request/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ repositories {
1414
}
1515

1616
android {
17-
compileSdkVersion 19
18-
buildToolsVersion '19.0.0'
17+
compileSdkVersion Integer.parseInt(ANDROID_COMPILE_SDK_VERSION)
18+
buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
1919

2020
defaultConfig {
21-
minSdkVersion 7
22-
targetSdkVersion 19
21+
minSdkVersion Integer.parseInt(ANDROID_MIN_SDK_VERSION)
22+
targetSdkVersion Integer.parseInt(ANDROID_TARGET_SDK_VERSION)
2323
versionCode Integer.parseInt(VERSION_CODE)
2424
versionName VERSION_NAME
2525
}

active-model/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ repositories {
1414
}
1515

1616
android {
17-
compileSdkVersion 19
18-
buildToolsVersion '19.0.0'
17+
compileSdkVersion Integer.parseInt(ANDROID_COMPILE_SDK_VERSION)
18+
buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
1919

2020
defaultConfig {
21-
minSdkVersion 7
22-
targetSdkVersion 19
21+
minSdkVersion Integer.parseInt(ANDROID_MIN_SDK_VERSION)
22+
targetSdkVersion Integer.parseInt(ANDROID_TARGET_SDK_VERSION)
2323
versionCode Integer.parseInt(VERSION_CODE)
2424
versionName VERSION_NAME
2525
}

active-record-sqlite3-adapter/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ repositories {
1414
}
1515

1616
android {
17-
compileSdkVersion 19
18-
buildToolsVersion '19.0.0'
17+
compileSdkVersion Integer.parseInt(ANDROID_COMPILE_SDK_VERSION)
18+
buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
1919

2020
defaultConfig {
21-
minSdkVersion 7
22-
targetSdkVersion 19
21+
minSdkVersion Integer.parseInt(ANDROID_MIN_SDK_VERSION)
22+
targetSdkVersion Integer.parseInt(ANDROID_TARGET_SDK_VERSION)
2323
versionCode Integer.parseInt(VERSION_CODE)
2424
versionName VERSION_NAME
2525
}

active-record/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ repositories {
1414
}
1515

1616
android {
17-
compileSdkVersion 19
18-
buildToolsVersion '19.0.0'
17+
compileSdkVersion Integer.parseInt(ANDROID_COMPILE_SDK_VERSION)
18+
buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
1919

2020
defaultConfig {
21-
minSdkVersion 7
22-
targetSdkVersion 19
21+
minSdkVersion Integer.parseInt(ANDROID_MIN_SDK_VERSION)
22+
targetSdkVersion Integer.parseInt(ANDROID_TARGET_SDK_VERSION)
2323
versionCode Integer.parseInt(VERSION_CODE)
2424
versionName VERSION_NAME
2525
}

active-support/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ repositories {
1414
}
1515

1616
android {
17-
compileSdkVersion 19
18-
buildToolsVersion '19.0.0'
17+
compileSdkVersion Integer.parseInt(ANDROID_COMPILE_SDK_VERSION)
18+
buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
1919

2020
defaultConfig {
21-
minSdkVersion 7
22-
targetSdkVersion 19
21+
minSdkVersion Integer.parseInt(ANDROID_MIN_SDK_VERSION)
22+
targetSdkVersion Integer.parseInt(ANDROID_TARGET_SDK_VERSION)
2323
versionCode Integer.parseInt(VERSION_CODE)
2424
versionName VERSION_NAME
2525
}

androidies/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ repositories {
1414
}
1515

1616
android {
17-
compileSdkVersion 19
18-
buildToolsVersion '19.0.0'
17+
compileSdkVersion Integer.parseInt(ANDROID_COMPILE_SDK_VERSION)
18+
buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
1919

2020
defaultConfig {
21-
minSdkVersion 7
22-
targetSdkVersion 19
21+
minSdkVersion Integer.parseInt(ANDROID_MIN_SDK_VERSION)
22+
targetSdkVersion Integer.parseInt(ANDROID_TARGET_SDK_VERSION)
2323
versionCode Integer.parseInt(VERSION_CODE)
2424
versionName VERSION_NAME
2525
}

gradle.properties

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
1919

20-
VERSION_NAME=0.1.0
21-
VERSION_CODE=001000
20+
ANDROID_BUILD_TOOLS_VERSION=19.0.1
21+
ANDROID_COMPILE_SDK_VERSION=19
22+
ANDROID_MIN_SDK_VERSION=15
23+
ANDROID_TARGET_SDK_VERSION=19
24+
25+
VERSION_NAME=0.1.1-SNAPSHOT
26+
VERSION_CODE=001001
2227
GROUP=com.inframeworks.inandroid
2328

2429
POM_DESCRIPTION=inAndroid

wait_for_emulator

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
bootanim=""
3+
failcounter=0
4+
5+
until [[ "$bootanim" =~ "stopped" ]]; do
6+
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1`
7+
echo "$bootanim"
8+
if [[ "$bootanim" =~ "not found" ]]; then
9+
let "failcounter += 1"
10+
if [[ $failcounter -gt 3 ]]; then
11+
echo "Failed to start emulator"
12+
exit 1
13+
fi
14+
fi
15+
sleep 1
16+
done
17+
18+
echo "Done"

0 commit comments

Comments
 (0)