Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit a6a4bf8

Browse files
authored
Travis CI update to Ubuntu 18.04 (#3497)
Updated Travic CI to use Ubuntu Bionic 18.04
1 parent d2c5303 commit a6a4bf8

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

.travis.yml

+11-20
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,41 @@
1-
group: edge
1+
---
22

3-
sudo: required
3+
group: edge
44

5-
dist: trusty
5+
dist: bionic
66

77
language: java
88

9+
os: linux
10+
911
jdk:
1012
- oraclejdk11
1113

1214
addons:
1315
apt:
14-
sources:
15-
- ubuntu-toolchain-r-test
16-
1716
packages:
18-
- gcc-4.8
19-
- g++-4.8
20-
- gcc-4.8-multilib
21-
- g++-4.8-multilib
22-
- python2.7
17+
- libtool-bin
18+
- python-dev
19+
- python-wheel
2320
- wget
24-
- pkg-config
2521
- zip
2622
- zlib1g-dev
2723
- google-perftools
2824
- libgoogle-perftools-dev
2925

3026
env:
31-
- BAZEL_VERSION=0.26.0 CC=gcc-4.8 CXX=g++-4.8 CPP=cpp-4.8 CXXCPP=cpp-4.8 ENABLE_HEAPCHECK=1
27+
- BAZEL_VERSION=0.26.0 ENABLE_HEAPCHECK=1
3228

3329
before_install:
3430
# download and install bazel
3531
- wget -q "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh"
3632
- chmod +x bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh
3733
- ./bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh --user
3834

39-
before_script:
40-
# install python module for wheel files
41-
# required for python packaging
42-
- sudo pip install wheel
43-
4435
script:
45-
- which gcc-4.8
36+
- which gcc
4637
- gcc --version
47-
- which g++-4.8
38+
- which g++
4839
- g++ --version
4940
- which python
5041
- python -V

integration_test/src/python/local_test_runner/test_template.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import os
2828
import time
2929
from urllib.request import urlopen
30+
import shutil
3031
import signal
3132
import subprocess
3233
from collections import namedtuple
@@ -152,7 +153,7 @@ def _inject_test_data(self):
152153
# move to read file. This guarantees contents will be put into the file the
153154
# spout is reading from atomically
154155
# which increases the determinism
155-
os.rename('temp.txt', self.params['readFile'])
156+
shutil.move('temp.txt', self.params['readFile'])
156157

157158
def _check_results(self):
158159
""" get actual and expected result.

0 commit comments

Comments
 (0)