Skip to content
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

Prepare APNS support #5

Merged
merged 32 commits into from
Jun 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
60c77bf
Prepare APNS support
threema-danilo Mar 5, 2018
e9f0ca2
Refactor code structure
threema-danilo Mar 5, 2018
d45a1f5
Rename push::Data to push::ThreemaPayload
threema-danilo Mar 5, 2018
0748208
Hyper hyper http2
threema-danilo Mar 5, 2018
017fd82
Override hyper dependency in hyper-tls
threema-danilo Mar 6, 2018
9d7824a
Create newtype for GcmToken and ApnsToken
threema-danilo Mar 6, 2018
8f65e8b
Add apns2 crate dependency
threema-danilo Mar 6, 2018
14d8b17
Cargo update
threema-danilo Mar 29, 2018
c31c836
Add APNS config to config.ini
threema-danilo Mar 29, 2018
4bb5c57
Implement initial support for APNs pushes
threema-danilo Apr 4, 2018
9b0128b
Apply rustfmt
threema-danilo Apr 4, 2018
64449c9
Update README
threema-danilo Apr 5, 2018
7cb157f
Log bad request responses
threema-danilo Apr 5, 2018
b71c298
Upgrade to hyper 0.12 and latest a2
threema-danilo Apr 25, 2018
729d272
Update tests for hyper 0.12
threema-danilo Apr 25, 2018
3b9f54c
CI: Split test and audit steps
threema-danilo Apr 25, 2018
d68604f
Remove unnecessary type cast
threema-danilo Apr 25, 2018
23f1281
Fix content-type handling
threema-danilo Apr 25, 2018
fc13105
Version bump
threema-danilo Apr 25, 2018
bb242c4
Implement support for wakeup type
threema-danilo May 8, 2018
31d08bf
APNS: Pass in TTL as parameter
threema-danilo May 24, 2018
2a5dd29
Fix lifetime problem
threema-danilo May 24, 2018
6f944dc
Cargo update
threema-danilo May 24, 2018
6734812
CI: Use newer Rust version
threema-danilo May 29, 2018
742a20e
Implement support for logging stats to InfluxDB (#6)
dbrgn May 29, 2018
76d648b
Bump version to 2.0.0-pre.1
threema-danilo May 29, 2018
f1b31d0
InfluxDB: Implement support for basic auth
threema-danilo May 29, 2018
83df9e8
Version bump to 2.0.0-pre.2
threema-danilo May 29, 2018
8bb4527
Influxdb: Log success flag as tag
threema-danilo May 29, 2018
fd43366
InfluxDB: Fix boolean literals
threema-danilo May 29, 2018
e1c02da
Update to released version of a2 / hyper
threema-danilo Jun 5, 2018
f056a00
Version bump to 2.0.0-pre.3
threema-danilo Jun 5, 2018
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
42 changes: 39 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
version: 2

jobs:
build:

test:
docker:
- image: rust:1.23
- image: rust:1.26
steps:
- checkout
# Load cargo target from cache if possible.
Expand All @@ -13,7 +15,6 @@ jobs:
- v4-cargo-cache-{{ .Branch }}
- v4-cargo-cache
- run: cargo build && cargo test
- run: cargo install --force cargo-audit && cargo audit
- save_cache:
key: v4-cargo-cache-{{ checksum "Cargo.lock" }}
paths:
Expand All @@ -29,3 +30,38 @@ jobs:
paths:
- target
- /usr/local/cargo
audit:
docker:
- image: rust:1.23
steps:
- checkout
- restore_cache:
keys:
- v1-cargo-audit-cache
- run: cargo install --force cargo-audit && cargo audit
- save_cache:
key: v1-cargo-audit-cache
paths:
- /usr/local/cargo

workflows:
version: 2

# Build on push
on_push:
jobs:
- test
- audit

# Build master every week on Monday at 04:00 am
weekly:
triggers:
- schedule:
cron: "0 4 * * 1"
filters:
branches:
only:
- master
jobs:
- test
- audit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ target
*.swp
config.ini
.idea/
*.p8
17 changes: 17 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Formatting
max_width = 99
format_strings = true
#imports_indent = "block" (see https://github.com/rust-lang-nursery/rustfmt/issues/2596)
match_block_trailing_comma = true
use_field_init_shorthand = true
use_try_shorthand = true
wrap_comments = true
blank_lines_upper_bound = 2

# Import reordering
reorder_imported_names = true
reorder_imports = true

# Reporting
report_todo = "unnumbered"
report_fixme = "unnumbered"
Loading