2015-12-16 19:01:48 +00:00
|
|
|
language: android
|
2016-04-25 08:41:06 +00:00
|
|
|
jdk: oraclejdk8
|
2017-02-02 12:21:57 +00:00
|
|
|
sudo: required
|
2017-02-01 14:05:33 +00:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
sources:
|
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
|
packages:
|
|
|
|
|
- g++-4.8
|
2016-04-08 09:22:30 +00:00
|
|
|
before_install:
|
2017-02-02 12:21:57 +00:00
|
|
|
- $CXX --version
|
2016-04-08 09:22:30 +00:00
|
|
|
- export JAVA7_HOME=/usr/lib/jvm/java-7-oracle
|
|
|
|
|
- export JAVA8_HOME=/usr/lib/jvm/java-8-oracle
|
2017-01-04 12:02:23 +00:00
|
|
|
- nvm install 6.9.3
|
|
|
|
|
- nvm use 6.9.3
|
|
|
|
|
- npm i -g npm@4
|
2016-06-07 12:45:58 +00:00
|
|
|
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
|
2016-06-10 17:07:31 +00:00
|
|
|
- echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
|
2016-06-07 12:45:58 +00:00
|
|
|
- sudo apt-get update
|
|
|
|
|
- sudo apt-get install mongodb-org-server
|
|
|
|
|
- git clone https://github.com/HabitRPG/habitrpg.git ../habitrpg
|
2016-06-10 17:07:31 +00:00
|
|
|
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 2; done
|
|
|
|
|
- cd ../habitrpg && cp config.json.example config.json && npm install
|
|
|
|
|
- npm start &
|
|
|
|
|
- until nc -z localhost 3000; do echo Waiting for Habitica Server; sleep 2; done
|
|
|
|
|
- cd -
|
2015-12-16 19:01:48 +00:00
|
|
|
android:
|
|
|
|
|
components:
|
|
|
|
|
# Uncomment the lines below if you want to
|
|
|
|
|
# use the latest revision of Android SDK Tools
|
|
|
|
|
# - platform-tools
|
2016-05-26 02:42:29 +00:00
|
|
|
- tools
|
2015-12-16 19:01:48 +00:00
|
|
|
|
|
|
|
|
# The BuildTools version used by your project
|
2016-12-07 13:59:14 +00:00
|
|
|
- build-tools-24.0.3
|
2015-12-16 19:01:48 +00:00
|
|
|
|
|
|
|
|
# The SDK version used to compile your project
|
2016-12-07 13:59:14 +00:00
|
|
|
- android-25
|
2015-12-16 19:01:48 +00:00
|
|
|
|
|
|
|
|
# Additional components
|
|
|
|
|
- extra-google-google_play_services
|
2015-12-16 19:13:30 +00:00
|
|
|
- extra-google-m2repository
|
|
|
|
|
- extra-android-m2repository
|
2015-12-16 19:01:48 +00:00
|
|
|
|
|
|
|
|
# Specify at least one system image,
|
|
|
|
|
# if you need to run emulator(s) during your tests
|
|
|
|
|
#- sys-img-armeabi-v7a-android-19
|
|
|
|
|
#- sys-img-x86-android-17
|
2016-12-07 14:12:46 +00:00
|
|
|
licenses:
|
|
|
|
|
- 'android-sdk-preview-license-52d11cd2'
|
|
|
|
|
- 'android-sdk-license-.+'
|
|
|
|
|
- 'google-gdk-license-.+'
|
2017-02-02 12:21:57 +00:00
|
|
|
before_script:
|
|
|
|
|
- cp habitica.properties.travis habitica.properties
|
|
|
|
|
- cp habitica.resources.example habitica.resources
|
|
|
|
|
- cp Habitica/google-services.json.example Habitica/google-services.json
|
2016-03-22 11:39:22 +00:00
|
|
|
script:
|
2017-02-02 12:21:57 +00:00
|
|
|
- ./gradlew $TEST
|
|
|
|
|
env:
|
|
|
|
|
global:
|
|
|
|
|
- CXX=g++-4.8
|
|
|
|
|
- DISABLE_REQUEST_LOGGING=true
|
|
|
|
|
matrix:
|
|
|
|
|
- TEST="assembleDebug -PdisablePreDex"
|
|
|
|
|
- TEST="testDebugUnitTest -PdisablePreDex --stacktrace --info"
|