-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
74 lines (66 loc) · 2.59 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 ./IntXLib/src/Packages/FPC/IntXLib4PascalPackage.lpk # Add IntXLib4Pascal Package
- lazbuild $LAZ_OPT ./IntXLib/src/Packages/FPC/IntXLib4PascalPackage.lpk # Build IntXLib4Pascal Package
- lazbuild $LAZ_OPT ./IntXLib.Tests/FreePascal.Tests/IntXLibConsole.Tests.lpi # Build IntXLib4Pascal Test Project
- travis_wait 120 $LAZ_ENV ./IntXLib.Tests/FreePascal.Tests/bin/IntXLib --all --format=plain --progress # Run IntXLib4Pascal TestSuite with timeout of 120 mins
notifications:
email:
on_success: false
on_failure: change