-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
69 lines (57 loc) · 1.77 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
matrix:
include:
- dist: bionic
arch:
- arm64
os: linux
language: python
python:
- "3.7.1"
services:
- redis-server
# command to install dependencies
install:
- sudo apt-get install -y lsb-release build-essential
- sudo pip3 install -r requirements.txt
- cp travis/config.yaml.template config.yaml
- "sed -i 's|token:.*|token: '${GITHUB_TOKEN}'|g' config.yaml"
- cat config.yaml
script:
# Run the test for 200 seconds.
- sudo python3 test_runner.py 200
- arch:
- arm64
os: linux
language: java
jdk:
- openjdk8
services:
- docker
- redis-server
env:
- DOCKER_COMPOSE_VERSION=1.24.1
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/
before_install:
- sudo apt-get install -y libffi-dev libssl-dev
- sudo apt-get install -y python python-pip
- sudo apt-get remove python-configparser
- sudo apt-get install -y screen
- sudo pip install docker-compose
- sudo mkdir -p /usr/local/radar/iot
- docker-compose -f docker/development/radar/docker-compose.yml -f docker/development/dashboard/docker-compose.yml up -d
# Wait for services to start up.
- sleep 50
- cd data/kotlin/data-uploader
# command to install dependencies
install:
- ./gradlew build
script:
- screen -L -d -m -S data-uploader ./gradlew run
- sleep 200 && screen -S data-uploader -X quit
- cat screenlog.0