-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
122 lines (121 loc) · 4.54 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
language: cpp
services:
- docker
jobs:
include:
# Arch x86_64
- env: package_format=arch docker_image=archlinux:latest dist= arch=
arch: amd64
# CentOS x86_64
- env: package_format=rpm docker_image=centos:8 dist=1.el8 arch=x86_64
arch: amd64
# CentOS armv8
- env: package_format=rpm docker_image=arm64v8/centos:8 dist=1.el8 arch=aarch64
arch: arm64
if: branch = master
# Ubuntu amd64
- env: package_format=deb docker_image=ubuntu:jammy dist=jammy arch=amd64
arch: amd64
- env: package_format=deb docker_image=ubuntu:focal dist=focal arch=amd64
arch: amd64
- env: package_format=deb docker_image=ubuntu:bionic dist=bionic arch=amd64
arch: amd64
- env: package_format=deb docker_image=ubuntu:xenial dist=xenial arch=amd64
arch: amd64
# Ubuntu i386
# i386 version of focal is currently buggy.
# - env: package_format=deb docker_image=i386/ubuntu:focal dist=focal arch=i386
# arch: amd64
- env: package_format=deb docker_image=i386/ubuntu:bionic dist=bionic arch=i386
arch: amd64
if: branch = master
- env: package_format=deb docker_image=i386/ubuntu:xenial dist=xenial arch=i386
arch: amd64
if: branch = master
# Debian amd64
- env: package_format=deb docker_image=debian:bookworm dist=bookworm arch=amd64
arch: amd64
- env: package_format=deb docker_image=debian:bullseye dist=bullseye arch=amd64
arch: amd64
- env: package_format=deb docker_image=debian:buster dist=buster arch=amd64
arch: amd64
- env: package_format=deb docker_image=debian:stretch dist=stretch arch=amd64
arch: amd64
# Debian i386
- env: package_format=deb docker_image=i386/debian:bookworm dist=bookworm arch=i386
arch: amd64
if: branch = master
- env: package_format=deb docker_image=i386/debian:bullseye dist=bullseye arch=i386
arch: amd64
if: branch = master
- env: package_format=deb docker_image=i386/debian:buster dist=buster arch=i386
arch: amd64
if: branch = master
- env: package_format=deb docker_image=i386/debian:stretch dist=stretch arch=i386
arch: amd64
if: branch = master
# Debian armv8
- env: package_format=deb docker_image=arm64v8/debian:bookworm dist=bookworm arch=arm64
arch: arm64
if: branch = master
- env: package_format=deb docker_image=arm64v8/debian:bullseye dist=bullseye arch=arm64
arch: arm64
if: branch = master
- env: package_format=deb docker_image=arm64v8/debian:buster dist=buster arch=arm64
arch: arm64
if: branch = master
- env: package_format=deb docker_image=arm64v8/debian:stretch dist=stretch arch=arm64
arch: arm64
if: branch = master
# Debian armv7
- env: package_format=deb docker_image=arm32v7/debian:bookworm dist=bookworm arch=armhf
arch: arm64
if: branch = master
- env: package_format=deb docker_image=arm32v7/debian:bullseye dist=bullseye arch=armhf
arch: arm64
if: branch = master
- env: package_format=deb docker_image=arm32v7/debian:buster dist=buster arch=armhf
arch: arm64
if: branch = master
- env: package_format=deb docker_image=arm32v7/debian:stretch dist=stretch arch=armhf
arch: arm64
if: branch = master
# Debian armv6 (Raspberry Pi)
- env: package_format=deb docker_image=balenalib/rpi-raspbian:bookworm dist=bookworm arch=rpi
arch: arm64
if: branch = master
- env: package_format=deb docker_image=balenalib/rpi-raspbian:bullseye dist=bullseye arch=rpi
arch: arm64
if: branch = master
- env: package_format=deb docker_image=balenalib/rpi-raspbian:buster dist=buster arch=rpi
arch: arm64
if: branch = master
- env: package_format=deb docker_image=balenalib/rpi-raspbian:stretch dist=stretch arch=rpi
arch: arm64
if: branch = master
before_install: gem install mtime_cache
script:
- mtime_cache -c vendor/.mtime_cache/cache.json 'vendor/mupdf/**/*'
- |
packaging/build-and-check-package-with-docker.sh \
"${package_format}" \
"${docker_image}" \
"${TRAVIS_COMMIT}" "${dist}" "${arch}"
cache:
directories:
- vendor/mupdf/build
- vendor/.mtime_cache
before_deploy: |
sudo chown -R "${USER}" upload && \
mkdir upload-gcs && \
mv upload "upload-gcs/${TRAVIS_BUILD_NUMBER}-${TRAVIS_COMMIT}"
deploy:
skip_cleanup: true
provider: gcs
access_key_id: ${GCS_ACCESS_KEY_ID}
secret_access_key: ${GCS_SECRET_ACCESS_KEY}
bucket: ${GCS_BUCKET}
local_dir: upload-gcs
on:
repo: jichu4n/jfbview
all_branches: true