This is an automated email from the ASF dual-hosted git repository. nicknezis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/master by this push: new a6a4bf8 Travis CI update to Ubuntu 18.04 (#3497) a6a4bf8 is described below commit a6a4bf88adf819bdf32c65ae5cc783ae32d8ef15 Author: Nicholas Nezis <nicholas.ne...@gmail.com> AuthorDate: Wed Apr 1 20:01:05 2020 -0400 Travis CI update to Ubuntu 18.04 (#3497) Updated Travic CI to use Ubuntu Bionic 18.04 --- .travis.yml | 31 ++++++++-------------- .../src/python/local_test_runner/test_template.py | 3 ++- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index 08dff22..6808ddd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,34 +1,30 @@ -group: edge +--- -sudo: required +group: edge -dist: trusty +dist: bionic language: java +os: linux + jdk: - oraclejdk11 addons: apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc-4.8 - - g++-4.8 - - gcc-4.8-multilib - - g++-4.8-multilib - - python2.7 + - libtool-bin + - python-dev + - python-wheel - wget - - pkg-config - zip - zlib1g-dev - google-perftools - libgoogle-perftools-dev env: - - BAZEL_VERSION=0.26.0 CC=gcc-4.8 CXX=g++-4.8 CPP=cpp-4.8 CXXCPP=cpp-4.8 ENABLE_HEAPCHECK=1 + - BAZEL_VERSION=0.26.0 ENABLE_HEAPCHECK=1 before_install: # download and install bazel @@ -36,15 +32,10 @@ before_install: - chmod +x bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh - ./bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh --user -before_script: - # install python module for wheel files - # required for python packaging - - sudo pip install wheel - script: - - which gcc-4.8 + - which gcc - gcc --version - - which g++-4.8 + - which g++ - g++ --version - which python - python -V diff --git a/integration_test/src/python/local_test_runner/test_template.py b/integration_test/src/python/local_test_runner/test_template.py index 3ad5fa5..349b64f 100644 --- a/integration_test/src/python/local_test_runner/test_template.py +++ b/integration_test/src/python/local_test_runner/test_template.py @@ -27,6 +27,7 @@ import logging import os import time from urllib.request import urlopen +import shutil import signal import subprocess from collections import namedtuple @@ -152,7 +153,7 @@ class TestTemplate(object): # move to read file. This guarantees contents will be put into the file the # spout is reading from atomically # which increases the determinism - os.rename('temp.txt', self.params['readFile']) + shutil.move('temp.txt', self.params['readFile']) def _check_results(self): """ get actual and expected result.