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

Commit

Permalink
Travis CI update to Ubuntu 18.04 (#3497)
Browse files Browse the repository at this point in the history
Updated Travic CI to use Ubuntu Bionic 18.04
  • Loading branch information
nicknezis authored Apr 2, 2020
1 parent d2c5303 commit a6a4bf8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
31 changes: 11 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,41 @@
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
- wget -q "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh"
- 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import os
import time
from urllib.request import urlopen
import shutil
import signal
import subprocess
from collections import namedtuple
Expand Down Expand Up @@ -152,7 +153,7 @@ def _inject_test_data(self):
# 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.
Expand Down

0 comments on commit a6a4bf8

Please sign in to comment.