Skip to content

Commit

Permalink
Fixing the build after travis upgraded Ubuntu (apache#7931)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mistercrunch authored Jul 27, 2019
1 parent df9efa8 commit f1d566a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -66,27 +78,15 @@ jobs:
python: 3.6
env: TOXENV=py36-postgres
services:
- postgres
- postgresql
- redis-server
before_script:
- psql -U postgres -c "CREATE DATABASE superset;"
- psql -U postgres -c "CREATE USER postgresuser WITH PASSWORD 'pguserpassword';"
- 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:
Expand All @@ -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
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ commands =
passenv = *
whitelist_externals =
{toxinidir}/scripts/check_license.sh
deps =

[testenv:py36-mysql]
deps =
Expand Down Expand Up @@ -153,3 +154,4 @@ envlist =
pylint
license-check
skipsdist = true

0 comments on commit f1d566a

Please sign in to comment.