Skip to content

Commit 04ddd4b

Browse files
committed
Merge branch 'master' into sameorigin
2 parents 346cd98 + 03ac789 commit 04ddd4b

File tree

122 files changed

+25238
-28238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+25238
-28238
lines changed

.diesel_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.4.1

.env.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export DATABASE_URL=
66
# If you are running a mirror of crates.io, uncomment this line.
77
# export MIRROR=1
88

9+
# If you're running an instance of the application on a domain different than
10+
# crates.io, uncomment this line and set the variable to your domain name.
11+
#export DOMAIN_NAME=staging.crates.io
12+
913
# Key to sign and encrypt cookies with. Must be at least 32 bytes. Change this
1014
# to a long, random string for production.
1115
export SESSION_KEY=badkeyabcdefghijklmnopqrstuvwxyzabcdef

.github/workflows/ci.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,26 @@ jobs:
6363

6464
env:
6565
RUST_BACKTRACE: 1
66-
DATABASE_URL: postgres://postgres:@localhost/cargo_registry_test
67-
TEST_DATABASE_URL: postgres://postgres:@localhost/cargo_registry_test
66+
DATABASE_URL: postgres://postgres:postgres@localhost/cargo_registry_test
67+
TEST_DATABASE_URL: postgres://postgres:postgres@localhost/cargo_registry_test
6868
CARGO_INCREMENTAL: 0
6969
RUSTFLAGS: "-C debuginfo=0 -D warnings"
7070
MALLOC_CONF: "background_thread:true,abort_conf:true,abort:true,junk:true"
7171

72+
services:
73+
postgres:
74+
image: postgres:11
75+
env:
76+
POSTGRES_PASSWORD: postgres
77+
# Set health checks to wait until postgres has started
78+
options: >-
79+
--health-cmd pg_isready
80+
--health-interval 10s
81+
--health-timeout 5s
82+
--health-retries 5
83+
ports:
84+
- 5432:5432
85+
7286
steps:
7387
- uses: actions/checkout@v2
7488

@@ -158,21 +172,6 @@ jobs:
158172
- name: Cargo clean on new rustc version
159173
run: script/ci/cargo-clean-on-new-rustc-version.sh
160174

161-
- name: Install required system libraries
162-
run: |
163-
sudo tee /etc/apt/sources.list.d/pgdg.list <<END
164-
deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main
165-
END
166-
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
167-
sudo apt-get update
168-
sudo apt-get install -y libpq-dev postgresql-11
169-
mkdir -p /etc/postgresql/11/main
170-
sudo tee /etc/postgresql/11/main/pg_hba.conf <<END
171-
local all all trust
172-
host all all 127.0.0.1/32 trust
173-
END
174-
sudo systemctl restart postgresql@11-main
175-
176175
- name: Setup database
177176
run: |
178177
which diesel || cargo install diesel_cli --vers $(cat .diesel_version) --no-default-features --features postgres

0 commit comments

Comments
 (0)