|
| 1 | +language:c |
| 2 | +addons: |
| 3 | +apt: |
| 4 | +sources: |
| 5 | + -ubuntu-toolchain-r-test |
| 6 | +packages: |
| 7 | + -binutils-mingw-w64-i686 |
| 8 | + -binutils-mingw-w64-x86-64 |
| 9 | + -gcc-mingw-w64 |
| 10 | + -gcc-mingw-w64-base |
| 11 | + -gcc-mingw-w64-i686 |
| 12 | + -gcc-mingw-w64-x86-64 |
| 13 | + -gcc-multilib |
| 14 | + -tcl8.6-dev |
| 15 | + -libx11-dev |
| 16 | + -libxss-dev |
| 17 | + -xvfb |
| 18 | +homebrew: |
| 19 | +packages: |
| 20 | + -tcl-tk |
| 21 | +# casks: |
| 22 | +# - xquartz |
| 23 | +jobs: |
| 24 | +include: |
| 25 | +# Testing on Linux GCC |
| 26 | + -name:"Linux/GCC/Shared" |
| 27 | +os:linux |
| 28 | +dist:focal |
| 29 | +services: |
| 30 | + -xvfb |
| 31 | +compiler:gcc |
| 32 | +env: |
| 33 | + -BUILD_DIR=unix |
| 34 | +script:&x11gui |
| 35 | + -make binaries libraries tktest |
| 36 | + -make install |
| 37 | + -make test-classic >out-classic.txt |
| 38 | + -cat out-classic.txt |
| 39 | + -grep -q "Failed0" out-classic.txt |
| 40 | + -make test-ttk >out-ttk.txt |
| 41 | + -cat out-ttk.txt |
| 42 | + -grep -q "Failed0" out-ttk.txt |
| 43 | + -name:"Linux/GCC/Shared/no-xft" |
| 44 | +os:linux |
| 45 | +dist:focal |
| 46 | +services: |
| 47 | + -xvfb |
| 48 | +compiler:gcc |
| 49 | +env: |
| 50 | + -BUILD_DIR=unix |
| 51 | + -CFGOPT="--disable-xft" |
| 52 | +script:*x11gui |
| 53 | + -name:"Linux/GCC/Shared/bionic" |
| 54 | +os:linux |
| 55 | +dist:bionic |
| 56 | +services: |
| 57 | + -xvfb |
| 58 | +compiler:gcc |
| 59 | +env: |
| 60 | + -BUILD_DIR=unix |
| 61 | +script:*x11gui |
| 62 | + -name:"Linux/GCC/Shared/xenial" |
| 63 | +os:linux |
| 64 | +dist:xenial |
| 65 | +services: |
| 66 | + -xvfb |
| 67 | +compiler:gcc |
| 68 | +env: |
| 69 | + -BUILD_DIR=unix |
| 70 | +script:*x11gui |
| 71 | + -name:"Linux/GCC/Static" |
| 72 | +os:linux |
| 73 | +dist:focal |
| 74 | +compiler:gcc |
| 75 | +env: |
| 76 | + -BUILD_DIR=unix |
| 77 | + -CFGOPT="--disable-shared" |
| 78 | + -name:"Linux/GCC/Debug" |
| 79 | +os:linux |
| 80 | +dist:focal |
| 81 | +compiler:gcc |
| 82 | +env: |
| 83 | + -BUILD_DIR=unix |
| 84 | + -CFGOPT="--enable-symbols" |
| 85 | +# Newer/Older versions of GCC |
| 86 | + -name:"Linux/GCC 10/Shared" |
| 87 | +os:linux |
| 88 | +dist:focal |
| 89 | +compiler:gcc-10 |
| 90 | +addons: |
| 91 | +apt: |
| 92 | +packages: |
| 93 | + -g++-10 |
| 94 | +env: |
| 95 | + -BUILD_DIR=unix |
| 96 | + -name:"Linux/GCC 5/Shared" |
| 97 | +os:linux |
| 98 | +dist:bionic |
| 99 | +compiler:gcc-5 |
| 100 | +addons: |
| 101 | +apt: |
| 102 | +packages: |
| 103 | + -g++-5 |
| 104 | +env: |
| 105 | + -BUILD_DIR=unix |
| 106 | +# Testing on Linux Clang |
| 107 | + -name:"Linux/Clang/Shared" |
| 108 | +os:linux |
| 109 | +dist:focal |
| 110 | +compiler:clang |
| 111 | +env: |
| 112 | + -BUILD_DIR=unix |
| 113 | + -name:"Linux/Clang/Shared/no-xft" |
| 114 | +os:linux |
| 115 | +dist:focal |
| 116 | +compiler:clang |
| 117 | +env: |
| 118 | + -BUILD_DIR=unix |
| 119 | + -CFGOPT="--disable-xft" |
| 120 | + -name:"Linux/Clang/Static" |
| 121 | +os:linux |
| 122 | +dist:focal |
| 123 | +compiler:clang |
| 124 | +env: |
| 125 | + -CFGOPT="--disable-shared" |
| 126 | + -BUILD_DIR=unix |
| 127 | + -name:"Linux/Clang/Debug" |
| 128 | +os:linux |
| 129 | +dist:focal |
| 130 | +compiler:clang |
| 131 | +env: |
| 132 | + -BUILD_DIR=unix |
| 133 | + -CFGOPT="--enable-symbols" |
| 134 | +# Testing on Mac, various styles |
| 135 | + -name:"macOS/Xcode 12/Shared" |
| 136 | +os:osx |
| 137 | +osx_image:xcode12 |
| 138 | +env: |
| 139 | + -BUILD_DIR=unix |
| 140 | + -CFGOPT="--with-tcl=/usr/local/opt/tcl-tk/lib --enable-aqua CFLAGS=-I/usr/local/opt/tcl-tk/include" |
| 141 | + -name:"macOS/Xcode 12/Static" |
| 142 | +os:osx |
| 143 | +osx_image:xcode12 |
| 144 | +env: |
| 145 | + -BUILD_DIR=unix |
| 146 | + -CFGOPT="--with-tcl=/usr/local/opt/tcl-tk/lib --enable-aqua --disable-shared CFLAGS=-I/usr/local/opt/tcl-tk/include" |
| 147 | + -name:"macOS/Xcode 12/Debug" |
| 148 | +os:osx |
| 149 | +osx_image:xcode12 |
| 150 | +env: |
| 151 | + -BUILD_DIR=unix |
| 152 | + -CFGOPT="--with-tcl=/usr/local/opt/tcl-tk/lib --enable-aqua --enable-symbols CFLAGS=-I/usr/local/opt/tcl-tk/include" |
| 153 | +# - name: "macOS/Xcode 12/Shared/XQuartz" |
| 154 | +# os: osx |
| 155 | +# osx_image: xcode12 |
| 156 | +# env: |
| 157 | +# - BUILD_DIR=unix |
| 158 | +# - CFGOPT="--with-tcl=/usr/local/opt/tcl-tk/lib --disable-corefoundation --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib CFLAGS=-I/usr/local/opt/tcl-tk/include" |
| 159 | +# Older MacOS versions |
| 160 | + -name:"macOS/Xcode 11/Shared" |
| 161 | +os:osx |
| 162 | +osx_image:xcode11.7 |
| 163 | +env: |
| 164 | + -BUILD_DIR=unix |
| 165 | + -CFGOPT="--with-tcl=/usr/local/opt/tcl-tk/lib --enable-aqua CFLAGS=-I/usr/local/opt/tcl-tk/include CPPFLAGS=-mmacosx-version-min=10.14" |
| 166 | + -name:"macOS/Xcode 10/Shared" |
| 167 | +os:osx |
| 168 | +osx_image:xcode10.3 |
| 169 | +addons: |
| 170 | +homebrew: |
| 171 | +packages: |
| 172 | + -tcl-tk |
| 173 | +update:true |
| 174 | +env: |
| 175 | + -BUILD_DIR=unix |
| 176 | + -CFGOPT="--with-tcl=/usr/local/opt/tcl-tk/lib --enable-aqua CFLAGS=-I/usr/local/opt/tcl-tk/include CPPFLAGS=-mmacosx-version-min=10.14" |
| 177 | + -name:"macOS/Xcode 9/Shared" |
| 178 | +os:osx |
| 179 | +osx_image:xcode9.4 |
| 180 | +addons: |
| 181 | +homebrew: |
| 182 | +packages: |
| 183 | + -tcl-tk |
| 184 | +update:true |
| 185 | +env: |
| 186 | + -BUILD_DIR=unix |
| 187 | + -CFGOPT="--with-tcl=/usr/local/opt/tcl-tk/lib --enable-aqua CFLAGS=-I/usr/local/opt/tcl-tk/include CPPFLAGS=-mmacosx-version-min=10.13" |
| 188 | +# Test on Windows with MSVC native |
| 189 | +# - name: "Windows/MSVC/Shared" |
| 190 | +# os: windows |
| 191 | +# compiler: cl |
| 192 | +# env: &vcenv |
| 193 | +# - BUILD_DIR=win |
| 194 | +# - VCDIR="/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Auxiliary/Build" |
| 195 | +# before_install: &vcpreinst |
| 196 | +# - PATH="$PATH:$VCDIR" |
| 197 | +# - cd ${BUILD_DIR} |
| 198 | +# install: [] |
| 199 | +# script: |
| 200 | +# - cmd.exe //C vcvarsall.bat x64 '&&' nmake '-f' makefile.vc all tktest |
| 201 | +# "make dist" only |
| 202 | + -name:"Linux: make dist" |
| 203 | +os:linux |
| 204 | +dist:focal |
| 205 | +compiler:gcc |
| 206 | +env: |
| 207 | + -BUILD_DIR=unix |
| 208 | +script: |
| 209 | + -touch ../doc/man.macros |
| 210 | + -make dist |
| 211 | +before_install: |
| 212 | + -|- |
| 213 | + case $TRAVIS_OS_NAME in |
| 214 | + windows) |
| 215 | + choco install -y magicsplat-tcl-tk |
| 216 | + ;; |
| 217 | + esac |
| 218 | + -cd ${BUILD_DIR} |
| 219 | +install: |
| 220 | + -mkdir "$HOME/install dir" |
| 221 | + -./configure ${CFGOPT} "--prefix=$HOME/install dir" || (cat config.log && exit 1) |
| 222 | +script: |
| 223 | + -make binaries libraries tktest |
| 224 | + -make install |
| 225 | +before_cache: |
| 226 | + -|- |
| 227 | + case $TRAVIS_OS_NAME in |
| 228 | + osx) |
| 229 | + brew cleanup |
| 230 | + ;; |
| 231 | + esac |
| 232 | +cache: |
| 233 | +directories: |
| 234 | + -$HOME/Library/Caches/Homebrew |
| 235 | + -$HOME/AppData/Local/Temp/chocolatey |
| 236 | + -$HOME/AppData/Local/Apps/Tcl86 |