summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-16 21:06:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-16 21:06:16 (GMT)
commit1af02b624978cb251fa9e93878c8e6575e09b5da (patch)
treeea051233fd73240756a7f619098369c4bd509244 /.travis.yml
parentc4c42ab47ea735e7c79416a00708adcaacdcc7b2 (diff)
parent0b2a192339817f77ae34af6114b41251819894ff (diff)
downloadtk-1af02b624978cb251fa9e93878c8e6575e09b5da.zip
tk-1af02b624978cb251fa9e93878c8e6575e09b5da.tar.gz
tk-1af02b624978cb251fa9e93878c8e6575e09b5da.tar.bz2
Merge 8.6
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml92
1 files changed, 91 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index acdd25a..64163ed 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,7 +5,11 @@ addons:
packages:
- tcl-dev
- libx11-dev
-
+# Doesn't work at the moment, see: <https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296>
+# homebrew:
+# packages:
+# - tcl-tk
+# - xquartz
matrix:
include:
# Testing on Linux with various compilers
@@ -15,13 +19,27 @@ matrix:
compiler: gcc
env:
- BUILD_DIR=unix
+ - name: "Linux/GCC/Shared/no-xft"
+ os: linux
+ dist: bionic
+ compiler: gcc
+ env:
+ - BUILD_DIR=unix
+ - CFGOPT="--disable-xft"
- name: "Linux/GCC/Static"
os: linux
dist: bionic
compiler: gcc
env:
+ - BUILD_DIR=unix
- CFGOPT="--disable-shared"
+ - name: "Linux/GCC/Debug"
+ os: linux
+ dist: bionic
+ compiler: gcc
+ env:
- BUILD_DIR=unix
+ - CFGOPT="--enable-symbols"
- name: "Linux/G++/Shared"
os: linux
dist: bionic
@@ -29,6 +47,7 @@ matrix:
env:
- BUILD_DIR=unix
- CFGOPT="CC=g++ CFLAGS=-Dregister=dont+use+register"
+# Older versions of GCC...
- name: "Linux/GCC 7/Shared"
os: linux
dist: bionic
@@ -65,7 +84,74 @@ matrix:
- g++-5
env:
- BUILD_DIR=unix
+# Clang
+ - name: "Linux/Clang/Shared"
+ os: linux
+ dist: bionic
+ compiler: clang
+ env:
+ - BUILD_DIR=unix
+ - name: "Linux/Clang/Shared/no-xft"
+ os: linux
+ dist: bionic
+ compiler: clang
+ env:
+ - BUILD_DIR=unix
+ - CFGOPT="--disable-xft"
+ - name: "Linux/Clang/Static"
+ os: linux
+ dist: bionic
+ compiler: clang
+ env:
+ - CFGOPT="--disable-shared"
+ - BUILD_DIR=unix
+ - name: "Linux/Clang/Debug"
+ os: linux
+ dist: bionic
+ compiler: clang
+ env:
+ - BUILD_DIR=unix
+ - CFGOPT="--enable-symbols"
+# Testing on Mac, various styles
+ - name: "macOS/Xcode 11.3/Shared/Unix-like"
+ os: osx
+ osx_image: xcode11.3
+ env:
+ - BUILD_DIR=unix
+ - 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"
+# - name: "macOS/Xcode 11.3/Shared"
+# os: osx
+# osx_image: xcode11.3
+# env:
+# - BUILD_DIR=macosx
+# install: []
+# script:
+# - make INSTALL_PATH=/usr/local/opt/tcl-tk/lib TCL_INSTALL_PATH=/usr/local/opt/tcl-tk/lib CFLAGS=-I/usr/local/opt/tcl-tk/include tk
+# Test on Windows with MSVC native
+# - name: "Windows/MSVC/Shared"
+# os: windows
+# compiler: cl
+# env: &vcenv
+# - BUILD_DIR=win
+# - VCDIR="/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Auxiliary/Build"
+# before_install: &vcpreinst
+# - PATH="$PATH:$VCDIR"
+# - cd ${BUILD_DIR}
+# install: []
+# script:
+# - cmd.exe //C vcvarsall.bat x64 '&&' nmake '-f' makefile.vc all tktest
before_install:
+ - |-
+ case $TRAVIS_OS_NAME in
+ windows)
+ choco install -y magicsplat-tcl-tk
+ ;;
+ osx)
+ brew update
+ brew install tcl-tk
+ brew cask install xquartz
+ ;;
+ esac
- cd ${BUILD_DIR}
install:
- ./configure ${CFGOPT} --prefix=$HOME || (cat config.log && exit 1)
@@ -73,3 +159,7 @@ before_script:
- export ERROR_ON_FAILURES=1
script:
- make binaries libraries tktest
+cache:
+ directories:
+ - $HOME/AppData/Local/Temp/chocolatey
+ - $HOME/AppData/Local/Apps/Tcl86