Skip to content

Commit 1f7f4a7

Browse files
authored
Merge pull request tectonic-typesetting#10 from pkgw/add-appveyor-env
tool: check for AppVeyor environment variables too
2 parents 7991d11 + 5554fd0 commit 1f7f4a7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tool/src/main.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@ impl GitHubInformation {
7474
}
7575
};
7676

77+
GitHubInformation {
78+
commit_sha,
79+
slug,
80+
tag,
81+
token,
82+
}
83+
} else if let Some(slug) = maybe_var("APPVEYOR_REPO_NAME")? {
84+
println!("info: looks like we are running on AppVeyor");
85+
let commit_sha = require_var("APPVEYOR_REPO_COMMIT")?;
86+
87+
let tag = match maybe_tag {
88+
Some(t) => t,
89+
None => require_var("APPVEYOR_REPO_TAG_NAME")?,
90+
};
91+
7792
GitHubInformation {
7893
commit_sha,
7994
slug,

0 commit comments

Comments
 (0)