-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
81 lines (76 loc) · 4.8 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
language: generic
sudo: required
services:
- docker
python:
- 3.6
dist: bionic
matrix:
include:
#
# Linux
#
- os: linux
name: "Linux"
env:
- DOCKERFILE=Dockerfile
android:
components:
- tools
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
install:
- docker build -t bannsec/revenge -f $DOCKERFILE .
script:
- docker run -it --rm --privileged --network host --cap-add ALL -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN -e COVERALLS_PARALLEL=True -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID bannsec/revenge bash -c 'cd /opt/revenge && ./test_linux.sh && if [ ! -z "$COVERALLS_REPO_TOKEN" ]; then coveralls; fi'
#
# Android API 27
#
- os: linux
name: "Android: system-images;android-27;default;x86_64"
env:
- DOCKERFILE=Dockerfile
- ANDROID_HOME=/usr/local/android-sdk
- QEMU_AUDIO_DRV=none
- TOOLS=${ANDROID_HOME}/tools
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils cpu-checker
- sudo kvm-ok
install:
- docker build -t bannsec/revenge -f $DOCKERFILE .
script:
- docker run -dit --rm --network host --privileged --device /dev/kvm bannsec/revenge_testenv_android-27_default_x86_64 /opt/emulator/emulator @test -no-window -no-snapshot -camera-back none -camera-front none -selinux permissive -qemu -m 2048
- docker run -it --rm --privileged --network host --cap-add ALL -e TRAVIS=1 -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN -e COVERALLS_PARALLEL=True -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID bannsec/revenge bash -c 'cd /opt/revenge && ./test_android.sh && if [ ! -z "$COVERALLS_REPO_TOKEN" ]; then coveralls; fi'
#
# Android API 29
#
- os: linux
name: "Android: system-images;android-29;default;x86_64"
env:
- DOCKERFILE=Dockerfile
- ANDROID_HOME=/usr/local/android-sdk
- QEMU_AUDIO_DRV=none
- TOOLS=${ANDROID_HOME}/tools
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils cpu-checker
- sudo kvm-ok
install:
- docker build -t bannsec/revenge -f $DOCKERFILE .
script:
- docker run -dit --rm --network host --privileged --device /dev/kvm bannsec/revenge_testenv_android-29_default_x86_64 /opt/emulator/emulator @test -no-window -verbose -no-snapshot -camera-back none -camera-front none -selinux permissive -qemu -m 2048
- docker run -it --rm --privileged --network host --cap-add ALL -e TRAVIS=1 -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN -e COVERALLS_PARALLEL=True -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID bannsec/revenge bash -c 'cd /opt/revenge && ./test_android.sh && if [ ! -z "$COVERALLS_REPO_TOKEN" ]; then coveralls; fi'
env:
global:
secure: DSXns4hOc8LSs6vsId086QB1iE8uaFb8ggQVLjy93kFD0zTwpHWHi1uxVoxHdT8pTv4DpGWAfUT+Ltxtji2dbmWhGxuQ9TSDRxnsdDlRCx00KsN7CvxkjPeTIgQmSTvhvMBBWUIJrCmF9x9G3L5aN4lxvLiY92d7gTjn7DbyPwyfFE51LvfRPyu+1/chKks/+QVj5CYGV5etEEZ69pLJvoYdm60VdBLxwzwfKsYbVtssoGthCXbCx+UrH1zLit+aLt5De61QsIXcIRpWcHL5hBJEillHJO62XzE923Gw7xZHi8EY8bjOaiCVpq0xnI6Tntvt/qaAE11xPE1A2pFKMcIjlnRIKaUA3IwazB7mzJwf33SXfPEipDECza/E4Piuw313iBwNq6A9yWF+AOVsQi7W4OiWcgNP4rJ5PKQYC4SUPLA9MXlh3HzFQy1zi8x7pC4HrgZKoWs7YjJ7G1lrfz3arADMGDyZwxV/A0NoJ30CrYwhiT0V5FGwp78040ap3n3bYs6KP4NMMBBVgl2Xy3vnFZxOX3yIDA/kc0bMqgExx1BRp95mIiv4ykTDF4DDra1PGOMoCSDEEvU4W9nRm6LLdHjtd4W2KFp8dVWqpOs9YMfJStDmVOu9kiII1cf9bUE+UD+iGYeXKcrQRARYfkiCAYLDXxOhglkaZl+hr1M=
notifications:
webhooks: https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN
# https://travis-ci.org/ankidroid/Anki-Android/jobs/516486608/config