You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by al...@apache.org on 2016/01/07 18:06:55 UTC
[2/5] nifi git commit: NIFI-1349 Providing workaround for Buffer
Overflow Issue in the Travis-CI container environment.
NIFI-1349 Providing workaround for Buffer Overflow Issue in the Travis-CI container environment.
Signed-off-by: Aldrin Piri <al...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/c18514fe
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/c18514fe
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/c18514fe
Branch: refs/heads/master
Commit: c18514fe2f40b6adbebf05d7d9b2e90bd30c9d29
Parents: aca1149
Author: Aldrin Piri <al...@apache.org>
Authored: Mon Jan 4 15:06:19 2016 -0500
Committer: Aldrin Piri <al...@apache.org>
Committed: Thu Jan 7 12:05:23 2016 -0500
----------------------------------------------------------------------
.travis.yml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/c18514fe/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index df3a798..b5c02d0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,4 @@
language: java
-sudo: false
os:
- linux
@@ -9,8 +8,12 @@ jdk:
- oraclejdk7
- openjdk7
-# Workaround for non-existent Maven repository as per: https://github.com/travis-ci/travis-ci/issues/4629#issuecomment-131214465
+# before_install aids in a couple workarounds for issues within the Travis-CI environment
+# 1. Workaround for buffer overflow issues with OpenJDK versions of java as per https://github.com/travis-ci/travis-ci/issues/5227#issuecomment-165135711
+# 2. Workaround for non-existent Maven repository as per: https://github.com/travis-ci/travis-ci/issues/4629#issuecomment-131214465
before_install:
+ - sudo hostname "$(hostname | cut -c1-63)"
+ - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
script: mvn clean install -Pcontrib-check