thon-installer.2.7.4b1.source-code..travis.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-installer Show documentation
Show all versions of jython-installer Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
# Build and run regression tests at Travis CI
#
# Sections of this are commented out principally for economy in running the tests.
# Runs are about 20 minutes on each host.
#
os: linux
dist: focal
language: java
addons:
apt: # only active on Linux
packages:
- ant
hostname: jyshort
jobs:
include:
- name: "openjdk8 on Linux"
dist: xenial
jdk: openjdk8
- name: "openjdk11 on Linux"
jdk: openjdk11
####
# OSX disabled because the homebrew installation of Java 8 takes nearly 20 minutes.
# (It seems impossible to stop it doing a "brew update".)
####
#- name: "openjdk@8 on macOS xcode11.6"
# os: osx
# osx_image: xcode11.6 # Supports homebrew bundle without needing update
# # https://docs.travis-ci.com/user/installing-dependencies/#installing-packages-on-macos
# addons:
# homebrew:
# taps:
# - homebrew/cask-versions # for openjdk
# packages:
# - ant
# - openjdk@8
# before_install:
# # Probe the brew Cellar
# - brew list openjdk@8
# # Make available to the JDK switcher.
# - sudo ln -sfn $(brew --prefix)/opt/openjdk@8/libexec/openjdk.jdk
# /Library/Java/JavaVirtualMachines/openjdk-8.jdk
# # Add the required JDK to the path
# - export JAVA_HOME="$(/usr/libexec/java_home -v1.8)"
# - echo $JAVA_HOME
# - export PATH="$JAVA_HOME/bin:$PATH"
- name: "openjdk11 on Windows"
os: windows
language: bash # Travis CI Windows does not yet support language: java
before_install:
# Install the required JDK and ant
- choco install openjdk11 ant
# Java is at /c/Program Files/OpenJDK/openjdk-/bin which is liable to change.
# Chocolatey has updated the PATH with that, but only in powershell [Environment].
# Dig out the Java path from [Environment] and translate it to Unix.
- java_exe=$(powershell -NonInteractive -Command
'$env:PATH=[Environment]::GetEnvironmentVariable("PATH","Machine");
write((Get-Command java).Path)')
- java_exe=$(cygpath "$java_exe")
- echo $java_exe
- export JAVA_HOME="${java_exe%/bin/*}"
- export PATH="$JAVA_HOME/bin:$PATH"
allow_failures:
- language: python
- os: osx # remains flakey
####
# Common part to all host OSes
####
# Install (i.e. build) Jython
install:
# Confirm versions and paths (this has been a problem)
- echo $PATH
- echo $JAVA_HOME
- ant -version
# Build Jython
- ant developer-build
# Run the regression test (tweaked for Travis in build.xml)
script:
# Echo versions of Jython, Java and OS
#- ant -emacs versions
# Fairly full regression test
- ant regrtest-ci