Skip to content

Commit 93730e0

Browse files
committed
Merge pull request #124 from JuliaLang/tk/appveyor
AppVeyor
2 parents 5f534b0 + 7d86ce7 commit 93730e0

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Compat Package for Julia
22

33
[![Build Status](https://travis-ci.org/JuliaLang/Compat.jl.svg?branch=master)](https://travis-ci.org/JuliaLang/Compat.jl)
4+
[![Build status](https://ci.appveyor.com/api/projects/status/github/JuliaLang/Compat.jl?branch=master)](https://ci.appveyor.com/project/quinnj/compat-jl/branch/master)
45
[![Compat](http://pkg.julialang.org/badges/Compat_0.3.svg)](http://pkg.julialang.org/?pkg=Compat&ver=release)
56
[![Compat](http://pkg.julialang.org/badges/Compat_0.4.svg)](http://pkg.julialang.org/?pkg=Compat&ver=nightly)
67

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+
- JULIAVERSION: "julialang/bin/winnt/x86/0.3/julia-0.3-latest-win32.exe"
4+
- JULIAVERSION: "julialang/bin/winnt/x64/0.3/julia-0.3-latest-win64.exe"
5+
- JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
6+
- JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"
7+
8+
branches:
9+
only:
10+
- master
11+
- /release-.*/
12+
13+
notifications:
14+
- provider: Email
15+
on_build_success: false
16+
on_build_failure: false
17+
on_build_status_changed: false
18+
19+
install:
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+
$("http://s3.amazonaws.com/"+$env:JULIAVERSION),
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 -F -e "versioninfo();
36+
Pkg.clone(pwd(), \"Compat\"); Pkg.build(\"Compat\")"
37+
38+
test_script:
39+
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"Compat\")"

0 commit comments

Comments
 (0)