Fixing the build after travis upgraded Ubuntu (#7931)

* Fixing the build after travis upgraded Ubuntu

It seems Travis has been updated/ing its build environment to Ubuntu
16.04 from Ubuntu 14 in the past few days. This broke a bunch of things
on our side.

* postgres -> postgresql

* Fix java

* Try openjdk8

* Fix, license check oracle and python

* Fix, license check oracle and python v2

* Fix, license check oracle and python v3

* Fix, license check oracle and python v4

* dummy commit, just to trigger the build
This commit is contained in:
Maxime Beauchemin
2019-07-27 08:33:03 -07:00
committed by GitHub
parent df9efa8ed9
commit f1d566a90c
2 changed files with 22 additions and 13 deletions

View File

@@ -16,6 +16,18 @@
#
jobs:
include:
- language: python
python: 3.6
env:
- TOXENV=license-check
- TRAVIS_CACHE=$HOME/.travis_cache/
addons:
apt:
packages:
- openjdk-8-jdk
install:
- sudo pip install --upgrade pip
- sudo pip install codecov tox
- language: python
python: 3.6
env: TOXENV=cypress-dashboard
@@ -66,7 +78,7 @@ jobs:
python: 3.6
env: TOXENV=py36-postgres
services:
- postgres
- postgresql
- redis-server
before_script:
- psql -U postgres -c "CREATE DATABASE superset;"
@@ -74,19 +86,7 @@ jobs:
- language: python
python: 3.6
env: TOXENV=pylint
- language: python
python: 3.6
env:
- TOXENV=license-check
- TRAVIS_CACHE=$HOME/.travis_cache/
jdk:
- oraclejdk8
before_install:
- jdk_switcher use oraclejdk8
install:
- pip install --upgrade pip
- pip install codecov tox
script:
- tox
after_success:
@@ -98,3 +98,10 @@ cache:
- ~/.cache
- ~/.travis_cache/
- superset/assets/.terser-plugin-cache/
addons:
apt:
packages:
- libgconf-2-4
install:
- pip install --upgrade pip
- pip install codecov tox

View File

@@ -121,6 +121,7 @@ commands =
passenv = *
whitelist_externals =
{toxinidir}/scripts/check_license.sh
deps =
[testenv:py36-mysql]
deps =
@@ -153,3 +154,4 @@ envlist =
pylint
license-check
skipsdist = true