-
-
Notifications
You must be signed in to change notification settings - Fork 79
/
.travis.yml
73 lines (63 loc) · 2.44 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
# Part of `travis-lazarus` (https://github.com/nielsAD/travis-lazarus)
# License: MIT
language: shell
sudo: required
dist: bionic
os:
- linux
- osx
- windows
env:
global:
- WINEPREFIX=~/.winelaz
- DISPLAY=:99.0
matrix:
- LAZ_PKG=true # Use the latest version from the default package manager. (apt, brew or choco)
- LAZ_VER=1.6 # Use specific (binary) release
# - LAZ_VER=2.0.4
matrix:
include:
- os: linux
env: LAZ_VER=1.6 LAZ_ENV=qemu-arm LAZ_OPT="--os=linux --cpu=arm"
- os: linux
env: LAZ_VER=2.0.4 LAZ_ENV=qemu-arm LAZ_OPT="--os=linux --cpu=arm"
- os: linux
arch: arm64
env: LAZ_PKG=true
# - os: windows
# env: LAZ_VER=1.6 LAZ_REL=64 LAZ_OPT="--os=win64 --cpu=x86_64"
# - os: windows
# env: LAZ_VER=2.0.4 LAZ_REL=64 LAZ_OPT="--os=win64 --cpu=x86_64"
# 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
before_install:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install python3 --params "/InstallDir:C:\python3"; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export PATH=/c/Python3:/c/Python3/Scripts:/c/lazarus:$PATH; fi
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
Xvfb $DISPLAY &
fi
- chmod +x .travis.install.py
# install:
# # Install prerequisites (fpc/lazarus/wine/qemu)
# - ./.travis.install.py
install:
# Install prerequisites (fpc/lazarus/wine/qemu)
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python ./.travis.install.py; fi
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then ./.travis.install.py; fi
script:
- lazbuild --add-package-link ./HashLib/src/Packages/FPC/HashLib4PascalPackage.lpk # Add HashLib4Pascal Package
- lazbuild $LAZ_OPT ./HashLib/src/Packages/FPC/HashLib4PascalPackage.lpk # Build HashLib4Pascal Package
- lazbuild $LAZ_OPT ./HashLib.Tests/FreePascal.Tests/HashLibConsole.Tests.lpi # Build HashLib4Pascal Test Project
- travis_wait 120 $LAZ_ENV ./HashLib.Tests/FreePascal.Tests/bin/HashLib --all --format=plain --progress # Run HashLib4Pascal TestSuite with timeout of 120 mins
notifications:
email:
on_success: false
on_failure: change