Skip to content

Commit 879ac18

Browse files
committed
Bump CI stack from xenial to bionic
1 parent d11b259 commit 879ac18

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
frontend:
1414
name: Frontend
15-
runs-on: ubuntu-16.04
15+
runs-on: ubuntu-18.04
1616
env:
1717
JOBS: 1 # See https://git.io/vdao3 for details.
1818
PERCY_PARALLEL_TOTAL: 2
@@ -64,8 +64,8 @@ jobs:
6464

6565
env:
6666
RUST_BACKTRACE: 1
67-
DATABASE_URL: postgres://postgres:@localhost/cargo_registry_test
68-
TEST_DATABASE_URL: postgres://postgres:@localhost/cargo_registry_test
67+
DATABASE_URL: postgres:///cargo_registry_test
68+
TEST_DATABASE_URL: postgres:///cargo_registry_test
6969
CARGO_INCREMENTAL: 0
7070
RUSTFLAGS: "-C debuginfo=0 -D warnings"
7171
MALLOC_CONF: "background_thread:true,abort_conf:true,abort:true,junk:true"
@@ -196,7 +196,7 @@ jobs:
196196
197197
- name: Setup database
198198
run: |
199-
which diesel || cargo install diesel_cli --vers $(cat .diesel_version) --no-default-features --features postgres
199+
which diesel || cargo install diesel_cli --debug --vers $(cat .diesel_version) --no-default-features --features postgres
200200
diesel database setup --locked-schema
201201
202202
- name: Lint

.travis.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: rust
2-
sudo: required
3-
dist: xenial
2+
dist: bionic
43

54
branches:
65
only:
@@ -18,24 +17,21 @@ env:
1817
global:
1918
- RUST_BACKTRACE=1
2019
- JOBS=1 # See https://git.io/vdao3 for details.
21-
- DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
22-
- TEST_DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
20+
- DATABASE_URL=postgres:///cargo_registry_test
21+
- TEST_DATABASE_URL=postgres:///cargo_registry_test
2322
- CARGO_INCREMENTAL=0
2423
- PERCY_PARALLEL_TOTAL=2
2524
# Percy secrets are included here to enable Percy's GitHub integration
2625
# on community-submitted PRs
2726
- PERCY_TOKEN=0d8707a02b19aebbec79bb0bf302b8d2fa95edb33169cfe41b084289596670b1
2827
- PERCY_PROJECT=crates-io/crates.io
29-
- PGPORT=5433
3028
- PATH=$HOME/.cargo/bin:$PATH
3129
- RUSTFLAGS="-C debuginfo=0 -D warnings"
3230
- MALLOC_CONF=background_thread:true,abort_conf:true,abort:true,junk:true
3331

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

4036
before_script:
4137
- diesel database setup --locked-schema

0 commit comments

Comments
 (0)