Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial work on git2 stuff * tracking down error * fixed detached head issue with branch * clippy lints * fix broken tests with git feature disabled * fix clippy lint that's only in nightly * testing * feature coverage * enum iterator * error test coverage * error test coverage * error test coverage * restructure impl Config for features * add submodule repo for testing * removed submodule to re-add from github * Updated to use submodule from github * refactored gen back to toplevel * checkout master in submodule to cover regular branch name * typo in .travis.yml * another bug in .travis.yml * added another repo for 'git describe' testing * fixed shadowing bug in vergen::Error * convert_err introduced * initial gen output, some error refactoring * feature snafu * another feature snafu * refactor for better coverage * better semver * fetch tags in submodules for testing * remove old output * fixed feature snafus * feature test, formatting * removed unused constants, added rustc commit has * Added remaining rustc meta * docs, constant normalization * fixed feature snafus * clippy lints, windows test fix * testing * README.md * Removed un-needed extern crate from doc example * more extensive testing for git instructions * added some feature fun to lib.rs * cargo fmt * cargo fmt * Check that removed key returns empty string * initial actions * actions, moar actions * Update README.md * trying the tarpaulin * tarpaulin only on linux * tarpaulin only on linux * codecov * Update README.md * Update README.md * more actions work * added detached head test * stupid stuff * cache ~/.cargo/bin dir * remove travis and gitlab config * allow to continue if install fails, likely because already exists * added support for cargo-all-features * added clippy * cargo-all-features in all of matrix * updated caching * Chaged hashfile for cache for library * cache key update, reordered so Cargo.toml exists for cache * additional instruction testing * tweaking cache again, causing failed builds * added rustversion to support testing diffs between nightly and beta/stable * added single toggle check. todo to make macro to check more toggles * cargo fmt Co-authored-by: Jason Ozias <jason.ozias@kroger.com> Co-authored-by: Jason Ozias <jason.ozias@gmail.com>
- Loading branch information
1 parent
43a767d
commit 8e54d0c
Showing
25 changed files
with
1,747 additions
and
873 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 |
---|---|---|
@@ -0,0 +1,104 @@ | ||
on: [push] | ||
|
||
name: CI | ||
|
||
jobs: | ||
test: | ||
name: vergen | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
rust: stable | ||
other: i686-unknown-linux-gnu | ||
- os: ubuntu-latest | ||
rust: beta | ||
other: i686-unknown-linux-gnu | ||
- os: ubuntu-latest | ||
rust: nightly | ||
other: i686-unknown-linux-gnu | ||
- os: macos-latest | ||
rust: stable | ||
other: x86_64-apple-ios | ||
- os: macos-latest | ||
rust: beta | ||
other: x86_64-apple-ios | ||
- os: macos-latest | ||
rust: nightly | ||
other: x86_64-apple-ios | ||
- os: windows-latest | ||
rust: stable-msvc | ||
other: i686-pc-windows-msvc | ||
- os: windows-latest | ||
rust: beta-msvc | ||
other: i686-pc-windows-msvc | ||
- os: windows-latest | ||
rust: nightly-msvc | ||
other: i686-pc-windows-msvc | ||
- os: windows-latest | ||
rust: stable-gnu | ||
other: i686-pc-windows-gnu | ||
- os: windows-latest | ||
rust: beta-gnu | ||
other: i686-pc-windows-gnu | ||
- os: windows-latest | ||
rust: nightly-gnu | ||
other: i686-pc-windows-gnu | ||
steps: | ||
- name: ✔️ Checkout ✔️ | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: 💵 Cache 💵 | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/bin/cargo-tarpaulin* | ||
~/.cargo/bin/cargo-*-all-features* | ||
key: ${{ runner.os }}-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }} | ||
- name: ✔️ Checkout (notagsrepo master) ✔️ | ||
run: cd testdata/notagsrepo && git checkout master && cd .. | ||
- name: ✔️ Checkout (tagsrepo master) ✔️ | ||
run: cd testdata/tagsrepo && git checkout master && cd .. | ||
- name: ✔️ Checkout (detachedhead v0.0.1) ✔️ | ||
run: cd testdata/detachedhead && git checkout v0.0.1 && cd .. | ||
- name: 🐕 Fetch 🐕 | ||
run: git submodule foreach --recursive 'git fetch --tags' | ||
- name: 💾 Install (cargo-tarpaulin) 💾 | ||
uses: actions-rs/install@v0.1 | ||
if: matrix.os == 'ubuntu-latest' | ||
with: | ||
crate: cargo-tarpaulin | ||
version: latest | ||
use-tool-cache: true | ||
continue-on-error: true | ||
- name: 💾 Install (cargo-all-features) 💾 | ||
uses: actions-rs/install@v0.1 | ||
with: | ||
crate: cargo-all-features | ||
version: latest | ||
use-tool-cache: true | ||
continue-on-error: true | ||
- name: 📅 Update 📅 | ||
run: rustup update --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} | ||
- name: ➕ Add ➕ | ||
run: rustup component add rustfmt || echo "rustfmt not available" | ||
- name: ➕ Add ➕ | ||
run: rustup component add clippy || echo "clippy not available" | ||
- name: ☢️ Formatting ☢️ | ||
run: cargo fmt --all -- --check | ||
- name: 🕳️ Lints 🕳️ | ||
run: cargo clippy --all -- -D warnings | ||
- name: 🏗️ Build 🏗️ | ||
run: cargo build-all-features | ||
- name: 🧪 Test 🧪 | ||
run: cargo test-all-features | ||
- name: 🙊 Code Coverage 🙊 | ||
if: matrix.os == 'ubuntu-latest' | ||
run: cargo tarpaulin --out Xml | ||
- name: 🙊 Upload Code Coverage 🙊 | ||
uses: codecov/codecov-action@v1 | ||
if: matrix.os == 'ubuntu-latest' | ||
with: | ||
files: ./cobertura.xml |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[submodule "testdata/notagsrepo"] | ||
path = testdata/notagsrepo | ||
url = https://github.com/rustyhorde/notagsrepo.git | ||
[submodule "testdata/tagsrepo"] | ||
path = testdata/tagsrepo | ||
url = https://github.com/rustyhorde/tagsrepo.git | ||
[submodule "testdata/detachedhead"] | ||
path = testdata/detachedhead | ||
url = https://github.com/rustyhorde/detachedhead.git |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
use chrono::Utc; | ||
|
||
pub fn main() { | ||
let now = chrono::Utc::now(); | ||
let now = Utc::now(); | ||
println!( | ||
"cargo:rustc-env=VERGEN_BUILD_TIMESTAMP={}", | ||
now.to_rfc3339() | ||
); | ||
println!("cargo:rustc-env=VERGEN_GIT_SEMVER=v3.2.0-86-g95fc0f5"); | ||
} |
Oops, something went wrong.