11# Part of `travis-lazarus` (https://github.com/nielsAD/travis-lazarus)
22# License: MIT
33
4- # Suppress the warning with the online Travis WebLint
5- # must be generic and not shell else build issue.
6- language : generic
7- sudo : required
4+ language : shell
85
96# Linux compability issue.
107# Need to build in xenial with lazarus 1.8.2.
118# Do not use bionic or newer Lazarus version
129
13- env :
14- global :
15- - DISPLAY=:99.0
10+ # For linux headless.
11+ # See travis_unit_test.sh will install and use xvfb-run
12+ # services: (- xvfb) does not work must use xvfb-run
1613
17- matrix :
14+ jobs :
1815 include :
1916 - os : linux
2017 dist : xenial
2118 env : LAZ_VER=1.8.2 RELEASE_ZIP_FILE="trackereditor_linux_amd64.zip"
2219 - os : osx
23- osx_image : xcode9.4
24- env : LAZ_VER=2.0.4 RELEASE_ZIP_FILE="trackereditor_macOS.zip"
20+ osx_image : xcode11.3
21+ env : LAZ_PKG=true LAZ_OPT="--widgetset=cocoa" RELEASE_ZIP_FILE="trackereditor_macOS.zip"
22+ - os : linux
23+ dist : xenial
24+ arch : arm64
25+ env : LAZ_PKG=true RELEASE_ZIP_FILE="trackereditor_linux_AArch64.zip"
26+
2527
2628before_install :
27- # Start virtual display server
28- - Xvfb $DISPLAY &
29+ - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install python3 --params "/InstallDir:C:\python3"; fi
30+ - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export PATH=/c/Python3:/c/Python3/Scripts:/c/lazarus:$PATH; fi
2931
3032install :
3133# Install prerequisites (fpc/lazarus/wine/qemu)
32- - ./travis-lazarus/.travis.install.py
34+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install xvfb -y; fi
35+ - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python ./travis-lazarus/.travis.install.py; fi
36+ - if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then ./travis-lazarus/.travis.install.py; fi
3337
3438script :
3539# Build trackereditor project (Release mode)
@@ -48,8 +52,9 @@ before_deploy:
4852deploy :
4953 - provider : releases
5054 prerelease : false
51- skip_cleanup : true
52- api_key :
55+ cleanup : false
56+ edge : true # opt in to dpl v2
57+ token :
5358 secure : hmjev+YIClSOec6wMclUv5W4lgyLpdX7DlUpF2LQ1W/EO/x/b8RzmSPjNZ5sa7IDUe1WoVXm89G6HtkGGHcRqJrZjNn18HvpvEOnIYgIEXBVtW9uaURsSJ2LYve9beHHvYzs0doEQp1I24qTENUOqMABStk7MKRTATZ7nBWIinZVkpojEYIizQtCnUWwJXpzgs9mx7BEAVqLJPJ35oXNVjEgE96gsWMaYuX82BsVpL9VjGIaYpbEc1iBFBr2RHTgHG03H+2wBewJ4gh3hFwq9vt6mEqdC6Y9UIqmAEUMzCpokqrIfV2cfnPe24miPqmCLboua7Ddu8OpLj/yQ9DvC8xVEVh8aiGszzPvnytaFuRfLxI5HdAtUkA/9P3dXwjJKLJs568kyCTz4Tk7Icrb7seS1i84BJs3Vp2/lkmqDRDR0OqVGTczZGsxfTK+iaZJaNXb999BmGBw+xnPuG1lgrjHUYyEH2ha9D/9eOXiQfxdKUktPs1cF0II7uv5Cg3LEcFyN/A7jblNpM5B9cnf5kJ13lbpqL+Eyig90b9Q9YsrwGGOqtXJG+jSqXOv0O9/warFJfadA0avJljOFv4Pxl4tYe73EA/gP1GVG5UVC/F9nWZhUzP1kPCjzTzHoYBDCmHf8/GErdpCtibqRHoMIelrbcpe0jr+j5aNPxnTKAc=
5459 file : " ${RELEASE_ZIP_FILE}"
5560 on :
@@ -59,8 +64,9 @@ deploy:
5964 access_key_id : $AWS_ACCESS_KEY
6065 secret_access_key : $AWS_SECRET_KEY
6166 bucket : " bittorrent-tracker-editor"
62- skip_cleanup : true
67+ cleanup : false
6368 region : eu-central-1
6469 local_dir : s3
70+ edge : true # opt in to dpl v2
6571 on :
6672 branch : to_be_deleted_unit_test
0 commit comments