-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
92 lines (85 loc) · 3.35 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
matrix:
include:
# BACKEND
- language: python
python: 3.6
services: postgresql
env:
- DJANGO=1.4.1
before_install:
- git fetch https://github.com/bounswe/bounswe2017group10.git master:master
- bash ./any_changes_in.sh backend || travis_terminate 0
install:
- cd Atlas/backend
- virtualenv atlasenv
- source ./atlasenv/bin/activate
- pip install -r requirements.txt
- python -m textblob.download_corpora
before_script:
- psql -c "CREATE DATABASE atlas;" -U postgres
- psql -c "CREATE USER atlas WITH SUPERUSER;" -U postgres
- psql -c "GRANT ALL PRIVILEGES ON DATABASE atlas TO atlas;" -U postgres
script:
- ./manage.py makemigrations
- ./manage.py migrate
- cd atlas/tests
- ../../manage.py test
# FRONTEND
- language: python
python: 3.6
before_install:
- git fetch https://github.com/bounswe/bounswe2017group10.git master:master
- bash ./any_changes_in.sh frontend || travis_terminate 0
before_script:
- cd Atlas/frontend
- chmod +x test
script:
- ./test
# ANDROID
- language: android
sudo: false
jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.gradle/native/
- $HOME/.gradle/daemon/
android:
before_install:
- git fetch https://github.com/bounswe/bounswe2017group10.git master:master
- bash ./any_changes_in.sh android || travis_terminate 0
install:
# Update sdk tools to latest version and install/update components
- android-update-sdk --components=android-26
- android-update-sdk --components=android-17
- android-update-sdk --components=build-tools-26.0.1
- android-update-sdk --components=extra-google-m2repository
- android-update-sdk --components=extra-android-m2repository
- android-update-sdk --components=sys-img-armeabi-v7a-android-17
- echo yes | sdkmanager "tools"
- echo yes | sdkmanager "platforms;android-26"
- echo yes | sdkmanager "extras;android;m2repository"
- echo yes | sdkmanager "extras;google;m2repository"
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2"
before_script:
- cd Atlas/android
- chmod +x gradlew
script:
- ./gradlew check -PdisablePreDex --continue --stacktrace
# - echo no | avdmanager create avd --force --name test --package 'system-images;android-17;default;armeabi-v7a' --abi armeabi-v7a
# - cd `dirname "$(which emulator)"`
# - emulator -avd test -no-skin -no-window &
# - android-wait-for-emulator
# - adb shell input keyevent 82 &
# - cd -
# - ./gradlew connectedAndroidTest -PdisablePreDex --continue --stacktrace
notifications:
email: