Skip to content

Commit f936f21

Browse files
committed
AppVeyor Badge
1 parent b8d5385 commit f936f21

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ This package offers Python-style general formatting and c-style numerical format
44

55
| **PackageEvaluator** | **Build Status** |
66
|:---------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------:|
7-
|[![][pkg-0.6-img]][pkg-0.6-url] | [![][travis-img]][travis-url] [![][codecov-img]][codecov-url] |
7+
|[![][pkg-0.6-img]][pkg-0.6-url] | [![][travis-img]][travis-url] [![][appveyor-img]][appveyor-url] [![][codecov-img]][codecov-url] |
88

99

1010
[travis-img]: https://travis-ci.org/JuliaIO/Formatting.jl.svg?branch=master
1111
[travis-url]: https://travis-ci.org/JuliaIO/Formatting.jl
1212

13+
[appveyor-img]: https://ci.appveyor.com/api/projects/status/all0t7gefcl5dgv1/branch/master?svg=true
14+
[appveyor-url]: https://ci.appveyor.com/project/jmkuhn/formatting-jl/branch/master
15+
1316
[codecov-img]: https://codecov.io/gh/JuliaIO/Formatting.jl/branch/master/graph/badge.svg
1417
[codecov-url]: https://codecov.io/gh/JuliaIO/Formatting.jl
1518

appveyor.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
environment:
2+
matrix:
3+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
4+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
5+
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
6+
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
7+
8+
branches:
9+
only:
10+
- master
11+
12+
notifications:
13+
- provider: Email
14+
on_build_success: false
15+
on_build_failure: false
16+
on_build_status_changed: false
17+
18+
install:
19+
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
20+
# If there's a newer build queued for the same PR, cancel this one
21+
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
22+
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
23+
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
24+
throw "There are newer queued builds for this pull request, failing early." }
25+
# Download most recent Julia Windows binary
26+
- ps: (new-object net.webclient).DownloadFile(
27+
$env:JULIA_URL,
28+
"C:\projects\julia-binary.exe")
29+
# Run installer silently, output to C:\projects\julia
30+
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
31+
32+
build_script:
33+
# Need to convert from shallow to complete for Pkg.clone to work
34+
- IF EXIST .git\shallow (git fetch --unshallow)
35+
- C:\projects\julia\bin\julia -e "versioninfo();
36+
Pkg.clone(pwd(), \"Formatting\"); Pkg.build(\"Formatting\")"
37+
38+
test_script:
39+
- C:\projects\julia\bin\julia -e "Pkg.test(\"Formatting\")"

0 commit comments

Comments
 (0)