-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Adenylatcyclase <[email protected]>
- Loading branch information
1 parent
b92b02f
commit 47b3faa
Showing
73 changed files
with
1,812 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,11 +162,11 @@ jobs: | |
rust-toolchain: [stable, beta, nightly] | ||
# Allow failures on nightly, it's just informative | ||
include: | ||
- rust: stable | ||
- rust-toolchain: stable | ||
can-fail: false | ||
- rust: beta | ||
- rust-toolchain: beta | ||
can-fail: false | ||
- rust: nightly | ||
- rust-toolchain: nightly | ||
can-fail: true | ||
|
||
container: | ||
|
@@ -196,51 +196,50 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
continue-on-error: true | ||
|
||
# issue on tarpaulin: https://github.com/xd009642/tarpaulin/issues/461 | ||
# coverage: | ||
# runs-on: ubuntu-18.04 | ||
|
||
# container: | ||
# image: getcapsule/sandbox | ||
# options: --privileged | ||
|
||
# steps: | ||
# - name: install curl | ||
# run: apt-get update && apt-get install -y curl | ||
|
||
# - uses: actions/checkout@v2 | ||
|
||
# - uses: actions-rs/toolchain@v1 | ||
# with: | ||
# toolchain: nightly | ||
# override: true | ||
|
||
# - name: install-tarpaulin | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: install | ||
# args: --force cargo-tarpaulin | ||
|
||
# - name: run-tarpaulin | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: tarpaulin | ||
# args: '-p capsule -l --count --exclude-files examples/* ffi/* macros/* --out Xml -Zpackage-features --features full' | ||
|
||
# - uses: codecov/codecov-action@v1 | ||
# with: | ||
# file: ./cobertura.xml | ||
|
||
# - name: slack-it | ||
# uses: homoluctus/[email protected] | ||
# if: failure() || cancelled() | ||
# with: | ||
# type: ${{ job.status }} | ||
# job_name: '*${{ github.workflow }}* @ coverage' | ||
# url: ${{ secrets.SLACK_WEBHOOK }} | ||
# commit: true | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# continue-on-error: true | ||
coverage: | ||
runs-on: ubuntu-18.04 | ||
|
||
container: | ||
image: getcapsule/sandbox | ||
options: --privileged | ||
|
||
steps: | ||
- name: install curl | ||
run: apt-get update && apt-get install -y curl | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
|
||
- name: install-tarpaulin | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: --force cargo-tarpaulin | ||
|
||
- name: run-tarpaulin | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: tarpaulin | ||
args: "-p capsule -l --count --exclude-files examples/* ffi/* macros/* --out Xml -Zpackage-features --features full" | ||
|
||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./cobertura.xml | ||
|
||
- name: slack-it | ||
uses: homoluctus/[email protected] | ||
if: failure() || cancelled() | ||
with: | ||
type: ${{ job.status }} | ||
job_name: "*${{ github.workflow }}* @ coverage" | ||
url: ${{ secrets.SLACK_WEBHOOK }} | ||
commit: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
continue-on-error: true | ||
|
||
format: | ||
runs-on: ubuntu-18.04 | ||
|
@@ -293,10 +292,6 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
continue-on-error: true | ||
|
||
## TODO 01/23/21: Return to this, as it's getting an Exit 1, | ||
## but I can't get leak errors locally on our VM (exit 0) or my local | ||
## system 76 (bare). So, only shows up on GH (no problem in past runs). | ||
## I've tested on recent rust nightly and 19.11.6 (and 19.11.1) | ||
sanitize: | ||
runs-on: ubuntu-18.04 | ||
|
||
|
@@ -321,7 +316,6 @@ jobs: | |
/bin/bash -c "rustup install nightly && rustup default nightly \ | ||
&& rustup component add rust-src \ | ||
&& cargo run --target x86_64-unknown-linux-gnu -Zbuild-std -- -f ping4d.toml" | ||
continue-on-error: true | ||
- name: slack-it | ||
uses: homoluctus/[email protected] | ||
|
@@ -360,8 +354,7 @@ jobs: | |
|
||
slack-pr: | ||
if: github.event_name == 'pull_request' | ||
# TODO: re-add coverage | ||
needs: [audit, bench-pr, check, format, lint, sanitize, test] | ||
needs: [audit, bench-pr, check, coverage, format, lint, sanitize, test] | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: slack-it | ||
|
@@ -377,8 +370,7 @@ jobs: | |
|
||
slack: | ||
if: github.event_name == 'push' | ||
# TODO: re-add coverage | ||
needs: [audit, bench, check, format, lint, sanitize, test] | ||
needs: [audit, bench, check, coverage, format, lint, sanitize, test] | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: slack-it | ||
|
@@ -394,8 +386,7 @@ jobs: | |
|
||
discord-pr: | ||
if: github.event_name == 'pull_request' | ||
# TODO: re-add coverage | ||
needs: [audit, bench-pr, check, format, lint, sanitize, test] | ||
needs: [audit, bench-pr, check, coverage, format, lint, sanitize, test] | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: discord-it | ||
|
@@ -408,8 +399,7 @@ jobs: | |
|
||
discord: | ||
if: github.event_name == 'push' | ||
# TODO: re-add coverage | ||
needs: [audit, bench, check, format, lint, sanitize, test] | ||
needs: [audit, bench, check, coverage, format, lint, sanitize, test] | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: discord-it | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.