You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mg...@apache.org on 2020/02/03 06:46:42 UTC

[tomcat] branch 8.5.x updated: Test Tomcat on ARM64 at TravisCI

This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new 7f057cd  Test Tomcat on ARM64 at TravisCI
7f057cd is described below

commit 7f057cd455ab689fae217761443d9432d6803ff0
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Thu Jan 23 11:53:22 2020 +0200

    Test Tomcat on ARM64 at TravisCI
    
    (cherry picked from commit e6ebd2346850a14c3ff59a2372169a167958e024)
---
 .travis.yml        | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 .travis/antTest.sh |  8 +++++++
 2 files changed, 75 insertions(+)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..04a14c9
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,67 @@
+dist: bionic
+language: java
+jdk: oraclejdk8
+arch: arm64
+
+addons:
+    apt:
+      packages:
+        - ant
+        - build-essential
+        - automake
+        - autoconf
+        - tar
+        - libssl-dev
+        - subversion
+        - git
+        - libtool-bin
+
+install:
+    - ARCH=`uname -p`
+    - echo $ARCH
+    - JDK_X64="https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u242b08.tar.gz"
+    - JDK_ARM64="https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u232-b09/OpenJDK8U-jdk_aarch64_linux_hotspot_8u232b09.tar.gz"
+    - if test "X$ARCH" = "Xaarch64"; then JDK_URL=$JDK_ARM64; else JDK_URL=$JDK_X64; fi
+    - wget -q $JDK_URL && tar xzf OpenJDK*.tar.gz
+    - mv jdk8* jdk
+    - export JAVA_HOME=`pwd`/jdk
+    - wget -q http://mirrors.netix.net/apache/ant/binaries/apache-ant-1.10.7-bin.tar.gz && tar xzf apache-ant-*-bin.tar.gz
+    - export ANT_HOME=`pwd`/apache-ant-1.10.7
+    - export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
+    - java -version
+    - ant -version
+    - rm -rf $HOME/tmp
+    - export CURR_PWD=`pwd`
+    - svn co -q https://svn.apache.org/repos/asf/apr/apr/branches/1.6.x/ $HOME/tmp/apr
+    - cd $HOME/tmp/apr
+    - ./buildconf
+    - ./configure --prefix=$HOME/tmp/apr-build
+    - make
+    - make install
+    - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/tmp/apr-build/lib"
+    - git clone -q https://github.com/apache/tomcat-native.git $HOME/tmp/tomcat-native
+    - cd $HOME/tmp/tomcat-native/native
+    - sh buildconf --with-apr=$HOME/tmp/apr
+    - ./configure --with-apr=$HOME/tmp/apr --with-java-home=$JAVA_HOME --with-ssl=yes --prefix=$HOME/tmp/tomcat-native-build
+    - make
+    - make install
+    - cd $CURR_PWD
+    - yes | cp build.properties.default build.properties
+    - echo "test.threads=16" >> build.properties
+    - echo "test.relaxTiming=true" >> build.properties
+    - echo "test.excludePerformance=true" >> build.properties
+    - echo "test.openssl.path=/dev/null/openssl" >> build.properties
+    - echo "test.apr.loc=$HOME/tmp/tomcat-native-build/lib" >> build.properties
+
+
+script:
+    - ant -q clean
+    - travis_wait 60 "./.travis/antTest.sh"
+
+after_failure:
+    - tail -n 5000 ant-test.log
+    - ls -laR $HOME/tomcat-build-libs
+
+notifications:
+    email:
+      - dev@tomcat.apache.org
\ No newline at end of file
diff --git a/.travis/antTest.sh b/.travis/antTest.sh
new file mode 100755
index 0000000..155004c
--- /dev/null
+++ b/.travis/antTest.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+# A helper script for TravisCI builds that saves the std
+# out and err streams in a log file. This is needed
+# because otherwise TravisCI complains that there is too
+# much logging on stdout
+
+ant -q test 2>&1 > ant-test.log


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org