-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
64 lines (55 loc) · 1.38 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
os: linux
dist: trusty
services: docker
branches:
only:
- master
language: shell
## Section needed if local build
#language: android
#
#jdk: oraclejdk11
#
#android:
# components:
# - platform-tools
# - build-tools-28.0.1
# - android-28
# - extra-android-m2repository
# - sys-img-armeabi-v7a-android-19
#
#before_cache:
# - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
#
#cache:
# directories:
# - .nvm
# - $HOME/.gradle/caches/
# - $HOME/.gradle/wrapper/
before_install:
- env | sort
- export DOCKER_REPO="monogramm/ngxp-seed"
- export API_WEB_CLIENT_ID=clientWebId
- export API_WEB_CLIENT_SECRET=clientWebSecret
- docker --version
- docker-compose --version
- docker info
install:
# Execute CI build hooks
# TODO Mount local dir as volume to retrieve build results
- ./hooks/run build "${VARIANT}"
before_script:
- docker images
# - echo no | android create avd --force -n test -t android-19 -b armeabi-v7a
# - emulator -avd test -no-audio -no-window &
# - android-wait-for-emulator
script:
# Execute CI test hooks
- ./hooks/run test "${VARIANT}"
# TODO Migrate android package build into Dockerfile
# - npm run tslint
# - npm run build.android
# - npm run test.android --emulator --justlaunch
env: # Environments
- VARIANT=web
#- VARIANT=android