-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
74 lines (66 loc) · 2.62 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
# Part of `travis-lazarus` (https://github.com/nielsAD/travis-lazarus)
# License: MIT
language: generic
sudo: required
dist: trusty
os:
- linux
- osx
env:
global:
- WINEPREFIX=~/.winelaz
- DISPLAY=:99.0
matrix:
# - LAZ_PKG=true # Use the latest version from the default package manager
- LAZ_VER=1.6 # Use specific (binary) release
- LAZ_VER=1.8.0
- LAZ_VER=1.8.4
# - LAZ_VER=2.0RC1
matrix:
include:
- os: linux
env: LAZ_VER=1.6 LAZ_ENV=wine WINEARCH=win32 LAZ_OPT="--os=win32 --cpu=i386"
- os: linux
env: LAZ_VER=1.8.0 LAZ_ENV=wine WINEARCH=win32 LAZ_OPT="--os=win32 --cpu=i386"
- os: linux
env: LAZ_VER=1.8.4 LAZ_ENV=wine WINEARCH=win32 LAZ_OPT="--os=win32 --cpu=i386"
# - os: linux
# env: LAZ_VER=2.0RC1 LAZ_ENV=wine WINEARCH=win32 LAZ_OPT="--os=win32 --cpu=i386"
- os: linux
env: LAZ_VER=1.6 LAZ_ENV=wine WINEARCH=win64 LAZ_OPT="--os=win64 --cpu=x86_64"
- os: linux
env: LAZ_VER=1.8.0 LAZ_ENV=wine WINEARCH=win64 LAZ_OPT="--os=win64 --cpu=x86_64"
- os: linux
env: LAZ_VER=1.8.4 LAZ_ENV=wine WINEARCH=win64 LAZ_OPT="--os=win64 --cpu=x86_64"
# - os: linux
# env: LAZ_VER=2.0RC1 LAZ_ENV=wine WINEARCH=win64 LAZ_OPT="--os=win64 --cpu=x86_64"
# - os: linux
# env: LAZ_VER=1.6 LAZ_ENV=qemu-arm LAZ_OPT="--os=linux --cpu=arm"
# - os: linux
# env: LAZ_VER=1.8.0 LAZ_ENV=qemu-arm LAZ_OPT="--os=linux --cpu=arm"
# - os: linux
# env: LAZ_VER=1.8.4 LAZ_ENV=qemu-arm LAZ_OPT="--os=linux --cpu=arm"
# - os: linux
# env: LAZ_VER=2.0RC1 LAZ_ENV=qemu-arm LAZ_OPT="--os=linux --cpu=arm"
before_install:
# Start virtual display server
- Xvfb $DISPLAY &
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get update;
sudo apt-get install binutils-2.26;
sudo ln -sf /usr/lib/binutils-2.26/bin/* /usr/bin/;
sudo ln -sf /usr/lib/binutils-2.26/ldscripts/* /usr/lib/ldscripts/;
fi
- chmod +x .travis.install.py
install:
# Install prerequisites (fpc/lazarus/wine/qemu)
- ./.travis.install.py
script:
- lazbuild --add-package-link ./QRCodeGenLib/src/Packages/FPC/QRCodeGenLib4PascalPackage.lpk # Add QRCodeGenLib4Pascal Package
- lazbuild $LAZ_OPT ./QRCodeGenLib/src/Packages/FPC/QRCodeGenLib4PascalPackage.lpk # Build QRCodeGenLib4Pascal Package
- lazbuild $LAZ_OPT ./QRCodeGenLib.Demo/FreePascal.Demo/QrCodeGeneratorDemo.lpi # Build QRCodeGenLib4Pascal Demo Project
- travis_wait 120 $LAZ_ENV ./QRCodeGenLib.Demo/FreePascal.Demo/bin/QrCodeGeneratorDemo # Run QRCodeGenLib4Pascal Demo with timeout of 120 mins
notifications:
email:
on_success: false
on_failure: change