-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
86 lines (62 loc) · 2.86 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
language: python
os: linux
dist: bionic
jobs:
include:
- name: "Python 3.8 on Bionic Linux"
os: linux
dist: bionic
python: 3.8
install:
- pip3 install --upgrade pip
- pip3 install -r requirements.txt
- pip3 install -r test-requirements.txt
script:
- black --check --diff .
- flake8 . # modify .flake8 env file to update flake8 configuration
- coverage run -m unittest discover # modify .coveragerc env file to update test configuration
after_script:
- coveralls
- name: "Python 3.7 on macOS"
os: osx
osx_image: xcode11.3
language: shell
install:
- pip3 install --upgrade pip
- pip3 install -r requirements.txt
- pip3 install -r test-requirements.txt
script:
- black --check --diff .
- flake8 . # modify .flake8 env file to update flake8 configuration
- coverage run -m unittest discover # modify .coveragerc env file to update test configuration
after_script:
- coveralls
- name: "Onboard software tests for R-Pi"
language: shell
services:
- docker
env:
- REGISTRY_USER=nyutelemetryrobot
# REGISTRY_PASS=...
- secure: "imfO22PPQO0TrLfEKYyOGjVjKQI3OTT+cB50I9pY0cj99Exclo+Kl8PRZEivy3TO8c8Er9mF/huQ5hrIBo7n/xwnRplHRYZRhrk4zHQr8ircBLQcsZ9+r+g6FTZ0BG1x9oFUDa0Fq0a/DeJpdCE3XRruHNAw3JtvUfaMcNXZxYpc6VpblxuziVqXtWT6GoqJoNR8RcTQ68bDHBkgLKbcIRaRrg/T72o91xHJG8WQg7AkStVoO7jZP5fVykwxplILWFgjDqt0/U5+04FueI6snH7hhql9P+uKWM2mNVDQsWN0qL0jNat2PIy7Z4HzWeltVwzg9Bzr7QbC8YSKGRlEUNxdhohWfMhHV6rXgLz943YGP7KqzMh5/PcFt9Btau3xk/FnGtRCBAu3M3FUCILvYe9Y1QLlufWLiYSit87R8ymVi9ayKVwbDSkL2ratNb3ocoe/AYVxPooIJZNx2DBtbTYJIiqVWQDL2BXry1YCk2uBxvxQUTyLjWrUMBbSm33NjFxkd4dqJHtYeeEQm7RfnilsFK7ktN2HxlgxPeFduZtjlP5l86xoIsY7FLt/3D4wHJoTtKFd5qAmVZ2UqjsypEJs+6YRPN45s6T+FOlDS3mvOYE2GaeZlB0t0p4PpoZ/8NxZgAq8xYeGENPfcRPMXMzrRjIuZJFw/283b3MOLVA="
install:
- docker pull nyumotorsportstelemetryorg/mercury || true
# prepare qemu for arm emulation on x64 hardware
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
# build image
- docker build --pull --cache-from nyumotorsportstelemetryorg/mercury --tag nyumotorsportstelemetryorg/mercury .
- docker run -d --name test_pi nyumotorsportstelemetryorg/mercury
script:
# ensure that the server started up as expected
- docker ps -a
- docker ps | grep -q test_pi
after_script:
- docker images
before_deploy:
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"
deploy:
provider: script
script: docker push nyumotorsportstelemetryorg/mercury
on:
branch: master
repo: mercury-telemetry/mercury-telemetry