-
Notifications
You must be signed in to change notification settings - Fork 3
/
.appveyor.yml
76 lines (62 loc) · 1.82 KB
/
.appveyor.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
image: Ubuntu
environment:
global:
SCRIPTS: /dups/data/scripts/ci
matrix:
# DIST: Distribution / Release name.
# PYTHON: Python executable name on the given dist.
# PKG_DIR: Relative path (inside the container) to the pacakge dir for the
# given dist.
# RELEASE_FILE: Absolute path (inside the container) to where to
# store the built release package.
- DIST: archlinux
PYTHON: python
PKG_DIR: data/pkg/archlinux
RELEASE_FILE: /builds/python-dups-${DIST}.pkg.tar.xz
- DIST: bionic
PYTHON: python3
PKG_DIR: data/pkg/debian
RELEASE_FILE: /builds/python3-dups-${DIST}.deb
- DIST: buster
PYTHON: python3
PKG_DIR: data/pkg/debian
RELEASE_FILE: /builds/python3-dups-${DIST}.deb
matrix:
fast_finish: true
build: off
services:
- docker
before_build:
- sh: |
docker build -f data/docker/Dockerfile.${DIST} \
--pull --tag linuxwhatelse/dups-${DIST} .
build_script:
# Build package for each distribution
- sh: |
docker run -v $(pwd):/dups:ro -v $(pwd)/builds:/builds \
linuxwhatelse/dups-${DIST} \
${SCRIPTS}/test-build.sh ${PKG_DIR} ${RELEASE_FILE}
after_build:
# Try and install the previously built package
- sh: |
docker run -v $(pwd):/dups:ro -v $(pwd)/builds:/builds \
linuxwhatelse/dups-${DIST} \
${SCRIPTS}/test-install.sh ${PKG_DIR} ${RELEASE_FILE}
test_script:
# Run all unittests
- sh: |
docker run -v $(pwd):/dups:ro linuxwhatelse/dups-${DIST} \
${SCRIPTS}/test-dups.sh ${PYTHON}
artifacts:
- path: builds/*
deploy:
tag: pre-release
release: Pre-release builds
provider: GitHub
prerelease: true
force_update: true
auth_token:
secure: z6Y/Et2Hc/K7TPQCq/epSoqerDQFkh+4ukjzq1gaoWex8pmvJTm0/smZ5yhXnEBv
artifact: /.*/
on:
branch: master