habitica-android/.travis.yml

46 lines
1.6 KiB
YAML
Raw Normal View History

2015-12-16 19:01:48 +00:00
language: android
jdk: oraclejdk8
2016-04-08 09:22:30 +00:00
before_install:
- export JAVA7_HOME=/usr/lib/jvm/java-7-oracle
- export JAVA8_HOME=/usr/lib/jvm/java-8-oracle
Squashed commit of the following: commit 80da7601c48d63c92f909f4a3b4c6559bd907470 Merge: 2bf900d f0d997b Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:11:08 2016 +0200 Merge branch 'travis' of github.com:HabitRPG/habitrpg-android into travis # Conflicts: # .travis.yml commit 2bf900df64aa241db5feeb4820b643cd0e1fa1e8 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:05:37 2016 +0200 . commit f0d997b56f37d511e66e18734716934efef3af13 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:05:37 2016 +0200 . commit 62e96caf288ae6f7260d4eb73164f082db0c7016 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 17:16:06 2016 +0200 . commit b0f640ced3c2a0e654a2b34ca2fe8307be0b7208 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 17:12:09 2016 +0200 . commit 97d3892b0e9b259e94f1920ffe6226da05fa218c Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 16:16:04 2016 +0200 . commit 6b89f5ee013c2711fe1872e7ff657439ab61a02d Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 16:00:39 2016 +0200 set node version commit 79e2b3af80741266c8ba9dda90d6a3ad40c56d0a Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 15:44:13 2016 +0200 test commit 11a68ba8e91e219ad1db9f7cc6bac3a203cdd60f Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 15:16:23 2016 +0200 test different config commit 9c96911dc31d1ba123481eb3d291aee274973474 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 14:52:33 2016 +0200 fix config commit 9f41579bd9289985fb98f1a46d0292f897b6b420 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 14:48:15 2016 +0200 fix yaml
2016-06-10 17:07:31 +00:00
- nvm install 4.1.1
- nvm use 4.1.1
- npm i -g npm@3
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
Squashed commit of the following: commit 80da7601c48d63c92f909f4a3b4c6559bd907470 Merge: 2bf900d f0d997b Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:11:08 2016 +0200 Merge branch 'travis' of github.com:HabitRPG/habitrpg-android into travis # Conflicts: # .travis.yml commit 2bf900df64aa241db5feeb4820b643cd0e1fa1e8 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:05:37 2016 +0200 . commit f0d997b56f37d511e66e18734716934efef3af13 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:05:37 2016 +0200 . commit 62e96caf288ae6f7260d4eb73164f082db0c7016 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 17:16:06 2016 +0200 . commit b0f640ced3c2a0e654a2b34ca2fe8307be0b7208 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 17:12:09 2016 +0200 . commit 97d3892b0e9b259e94f1920ffe6226da05fa218c Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 16:16:04 2016 +0200 . commit 6b89f5ee013c2711fe1872e7ff657439ab61a02d Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 16:00:39 2016 +0200 set node version commit 79e2b3af80741266c8ba9dda90d6a3ad40c56d0a Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 15:44:13 2016 +0200 test commit 11a68ba8e91e219ad1db9f7cc6bac3a203cdd60f Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 15:16:23 2016 +0200 test different config commit 9c96911dc31d1ba123481eb3d291aee274973474 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 14:52:33 2016 +0200 fix config commit 9f41579bd9289985fb98f1a46d0292f897b6b420 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 14:48:15 2016 +0200 fix yaml
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
- sudo apt-get update
- sudo apt-get install mongodb-org-server
- git clone https://github.com/HabitRPG/habitrpg.git ../habitrpg
Squashed commit of the following: commit 80da7601c48d63c92f909f4a3b4c6559bd907470 Merge: 2bf900d f0d997b Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:11:08 2016 +0200 Merge branch 'travis' of github.com:HabitRPG/habitrpg-android into travis # Conflicts: # .travis.yml commit 2bf900df64aa241db5feeb4820b643cd0e1fa1e8 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:05:37 2016 +0200 . commit f0d997b56f37d511e66e18734716934efef3af13 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:05:37 2016 +0200 . commit 62e96caf288ae6f7260d4eb73164f082db0c7016 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 17:16:06 2016 +0200 . commit b0f640ced3c2a0e654a2b34ca2fe8307be0b7208 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 17:12:09 2016 +0200 . commit 97d3892b0e9b259e94f1920ffe6226da05fa218c Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 16:16:04 2016 +0200 . commit 6b89f5ee013c2711fe1872e7ff657439ab61a02d Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 16:00:39 2016 +0200 set node version commit 79e2b3af80741266c8ba9dda90d6a3ad40c56d0a Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 15:44:13 2016 +0200 test commit 11a68ba8e91e219ad1db9f7cc6bac3a203cdd60f Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 15:16:23 2016 +0200 test different config commit 9c96911dc31d1ba123481eb3d291aee274973474 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 14:52:33 2016 +0200 fix config commit 9f41579bd9289985fb98f1a46d0292f897b6b420 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 14:48:15 2016 +0200 fix yaml
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
- tools
2015-12-16 19:01:48 +00:00
# The BuildTools version used by your project
2016-05-22 13:02:59 +00:00
- build-tools-23.0.3
2015-12-16 19:01:48 +00:00
# The SDK version used to compile your project
2016-06-21 12:33:17 +00:00
- android-24
2015-12-16 19:01:48 +00:00
# Additional components
- extra-google-google_play_services
- 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-03-22 11:39:22 +00:00
script:
Squashed commit of the following: commit 80da7601c48d63c92f909f4a3b4c6559bd907470 Merge: 2bf900d f0d997b Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:11:08 2016 +0200 Merge branch 'travis' of github.com:HabitRPG/habitrpg-android into travis # Conflicts: # .travis.yml commit 2bf900df64aa241db5feeb4820b643cd0e1fa1e8 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:05:37 2016 +0200 . commit f0d997b56f37d511e66e18734716934efef3af13 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:05:37 2016 +0200 . commit 62e96caf288ae6f7260d4eb73164f082db0c7016 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 17:16:06 2016 +0200 . commit b0f640ced3c2a0e654a2b34ca2fe8307be0b7208 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 17:12:09 2016 +0200 . commit 97d3892b0e9b259e94f1920ffe6226da05fa218c Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 16:16:04 2016 +0200 . commit 6b89f5ee013c2711fe1872e7ff657439ab61a02d Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 16:00:39 2016 +0200 set node version commit 79e2b3af80741266c8ba9dda90d6a3ad40c56d0a Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 15:44:13 2016 +0200 test commit 11a68ba8e91e219ad1db9f7cc6bac3a203cdd60f Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 15:16:23 2016 +0200 test different config commit 9c96911dc31d1ba123481eb3d291aee274973474 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 14:52:33 2016 +0200 fix config commit 9f41579bd9289985fb98f1a46d0292f897b6b420 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 14:48:15 2016 +0200 fix yaml
2016-06-10 17:07:31 +00:00
- cp habitica.properties.travis habitica.properties
- cp habitica.resources.example habitica.resources
2016-03-22 11:39:22 +00:00
- ./gradlew assembleDebug
Squashed commit of the following: commit 80da7601c48d63c92f909f4a3b4c6559bd907470 Merge: 2bf900d f0d997b Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:11:08 2016 +0200 Merge branch 'travis' of github.com:HabitRPG/habitrpg-android into travis # Conflicts: # .travis.yml commit 2bf900df64aa241db5feeb4820b643cd0e1fa1e8 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:05:37 2016 +0200 . commit f0d997b56f37d511e66e18734716934efef3af13 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 19:05:37 2016 +0200 . commit 62e96caf288ae6f7260d4eb73164f082db0c7016 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 17:16:06 2016 +0200 . commit b0f640ced3c2a0e654a2b34ca2fe8307be0b7208 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 17:12:09 2016 +0200 . commit 97d3892b0e9b259e94f1920ffe6226da05fa218c Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 16:16:04 2016 +0200 . commit 6b89f5ee013c2711fe1872e7ff657439ab61a02d Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 16:00:39 2016 +0200 set node version commit 79e2b3af80741266c8ba9dda90d6a3ad40c56d0a Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 15:44:13 2016 +0200 test commit 11a68ba8e91e219ad1db9f7cc6bac3a203cdd60f Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 15:16:23 2016 +0200 test different config commit 9c96911dc31d1ba123481eb3d291aee274973474 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 14:52:33 2016 +0200 fix config commit 9f41579bd9289985fb98f1a46d0292f897b6b420 Author: Phillip Thelen <viirus@pherth.net> Date: Tue Jun 7 14:48:15 2016 +0200 fix yaml
2016-06-10 17:07:31 +00:00
- ./gradlew testDebugUnitTest --info