Skip to content

Bump CI stack from xenial to bionic #1867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
frontend:
name: Frontend
runs-on: ubuntu-16.04
runs-on: ubuntu-18.04
env:
JOBS: 1 # See https://git.io/vdao3 for details.

Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:

- name: Setup database
run: |
which diesel || cargo install diesel_cli --vers $(cat .diesel_version) --no-default-features --features postgres
which diesel || cargo install diesel_cli --vers $(cat .diesel_version) --no-default-features --features postgres --debug
diesel database setup --locked-schema

- name: Lint
Expand Down
18 changes: 8 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: rust
sudo: required
dist: xenial
dist: bionic
os: linux

branches:
only:
Expand All @@ -18,36 +18,32 @@ env:
global:
- RUST_BACKTRACE=1
- JOBS=1 # See https://git.io/vdao3 for details.
- DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
- TEST_DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
- DATABASE_URL=postgres:///cargo_registry_test
- TEST_DATABASE_URL=postgres:///cargo_registry_test
- CARGO_INCREMENTAL=0
# Percy secrets are included here to enable Percy's GitHub integration
# on community-submitted PRs
- PERCY_TOKEN=0d8707a02b19aebbec79bb0bf302b8d2fa95edb33169cfe41b084289596670b1
- PERCY_PROJECT=crates-io/crates.io
- PGPORT=5433
- PATH=$HOME/.cargo/bin:$PATH
- RUSTFLAGS="-C debuginfo=0 -D warnings"
- MALLOC_CONF=background_thread:true,abort_conf:true,abort:true,junk:true

install:
- sudo cp /etc/postgresql/10/main/pg_hba.conf /etc/postgresql/11/main/pg_hba.conf
- sudo systemctl restart postgresql@11-main
- script/ci/cargo-clean-on-new-rustc-version.sh
- which diesel || cargo install diesel_cli --vers `cat .diesel_version` --no-default-features --features postgres
- which diesel || cargo install diesel_cli --vers `cat .diesel_version` --no-default-features --features postgres --debug

before_script:
- diesel database setup --locked-schema

addons:
chrome: stable
postgresql: "11"
apt:
packages:
- postgresql-11
- postgresql-client-11

matrix:
jobs:
fast_finish: true
allow_failures:
- rust: nightly
Expand All @@ -64,6 +60,8 @@ matrix:
- name: Frontend
language: node_js
node_js: 12
addons:
chrome: stable
install:
- npm ci
before_script: skip
Expand Down