-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
39 lines (32 loc) · 978 Bytes
/
.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
sudo: required
services:
- docker
env:
global:
- DOCKER_COMPOSE_VERSION=1.21.2
matrix:
- OP_MACHINE_NAME=raspberry-pi
- OP_MACHINE_NAME=raspberrypi3
language: python
before_install:
- sudo rm /usr/local/bin/docker-compose
- sudo curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
install:
- pip install yq
# Ensure we can build ARM images
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
script:
# Build images
- docker-compose build
# Does it run?
- |
IMAGE=$(docker-compose config | yq -r .services.octoprint.image)
echo "OctoPrint image is: ${IMAGE}"
docker run --rm "${IMAGE}" /opt/octoprint/OctoPrint/venv/bin/octoprint --version
deploy:
skip_cleanup: true
provider: script
script: ./scripts/deploy.sh
on:
all_branches: true