You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by cb...@apache.org on 2020/12/01 10:28:27 UTC
[velocity-tools] branch master updated: Add .travis.yml for testing
the PRs at https://travis-ci.com/apache/velocity-tools
This is an automated email from the ASF dual-hosted git repository.
cbrisson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/velocity-tools.git
The following commit(s) were added to refs/heads/master by this push:
new 897639f Add .travis.yml for testing the PRs at https://travis-ci.com/apache/velocity-tools
new 422ed61 Merge pull request #10 from martin-g/feature/use-travis-ci
897639f is described below
commit 897639f43e14072689512cf3d517266eca06365d
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Fri Nov 20 14:34:08 2020 +0200
Add .travis.yml for testing the PRs at https://travis-ci.com/apache/velocity-tools
---
.travis.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..fc7b3f9
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,46 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+os: linux
+dist: focal
+
+arch:
+ - amd64
+ - arm64
+
+cache:
+ directories:
+ - $HOME/.m2/repository
+
+install:
+ - lscpu
+ - ARCH=`uname -p`
+ - echo $ARCH
+ - JDK_X64="https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u275-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u275b01.tar.gz"
+ - JDK_ARM64="https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u275-b01/OpenJDK8U-jdk_aarch64_linux_hotspot_8u275b01.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 https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz && tar xzf apache-maven-*-bin.tar.gz
+ - export M2_HOME=`pwd`/apache-maven-3.6.3
+ - export PATH="$JAVA_HOME/bin:$M2_HOME/bin:$PATH"
+ - java -version
+ - mvn -version
+
+script:
+ - mvn clean verify
\ No newline at end of file