Skip to content

Commit

Permalink
add appveyor testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Jan 5, 2018
1 parent e0194bc commit 8d9d448
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
environment:
matrix:
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
#- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
#- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"

branches:
only:
- master

notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false

init:
- git config --global core.autocrlf input

install:
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
# If there's a newer build queued for the same PR, cancel this one
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
# Download most recent Julia Windows binary
- ps: (new-object net.webclient).DownloadFile(
$env:JULIA_URL,
"C:\projects\julia-binary.exe")
# Run installer silently, output to C:\projects\julia
- C:\projects\julia-binary.exe /S /D=C:\projects\julia

build_script:
- C:\projects\julia\bin\julia -e "versioninfo();
Pkg.clone(pwd(), \"Glob\"); Pkg.build(\"Glob\")"

test_script:
- C:\projects\julia\bin\julia -e "Pkg.test(\"Glob\")"
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
language: julia
julia:
- nightly
#- nightly
- 0.6
os:
- linux
branches:
only:
- master
notifications:
email: false
git:
depth: 99999999
before_install:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
script:
Expand Down

0 comments on commit 8d9d448

Please sign in to comment.