File: test_window_build.sh

package info (click to toggle)
copyq 13.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,964 kB
  • sloc: cpp: 63,306; sh: 992; xml: 452; python: 293; ruby: 152; makefile: 27; javascript: 25
file content (19 lines) | stat: -rwxr-xr-x 530 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Downloads and tests Windows build from Appveyor.
# Usage:
#    utils/test_window_build.sh [BRANCH=master [VERSION=$(git describe origin/BRANCH)]]
set -ex

branch=${1:-master}
version=${2:-$(git describe "origin/$branch")}
project=hluk/copyq
tmp_dir=/tmp/copyq-test
archive="copyq-$version.zip"
url="https://ci.appveyor.com/api/projects/$project/artifacts/$archive?branch=$branch"

if [[ ! -f "$archive" ]]; then
  curl -o "$archive" "$url"
fi

unzip "$archive" -d "$tmp_dir"
wine "$tmp_dir/copyq-$version/copyq.exe"