Skip to content

Commit

Permalink
Merge pull request #79 from JuliaMath/sb/appveyor
Browse files Browse the repository at this point in the history
enable Appveyor
  • Loading branch information
simonbyrne authored Oct 19, 2018
2 parents 1319847 + 3e6dca3 commit c3f99e7
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 10 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
GSL.jl
======

[![Build Status](https://travis-ci.org/JuliaMath/GSL.jl.svg?branch=master)](https://travis-ci.org/JuliaMath/GSL.jl)
[![Travis Build Status](https://travis-ci.org/JuliaMath/GSL.jl.svg?branch=master)](https://travis-ci.org/JuliaMath/GSL.jl)
[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/7049flml50cs65mu/branch/master?svg=true)](https://ci.appveyor.com/project/simonbyrne/gsl-jl/branch/master)
[![codecov.io](http://codecov.io/github/JuliaMath/GSL.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaMath/GSL.jl?branch=master)

Julia interface to the [GNU Scientific Library (GSL)](http://www.gnu.org/software/gsl)
Expand Down
44 changes: 44 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
environment:
matrix:
- julia_version: 0.6
- julia_version: 0.7
- julia_version: 1
- julia_version: nightly

platform:
- x86 # 32-bit
- x64 # 64-bit

# # Uncomment the following lines to allow failures on nightly julia
# # (tests will run but not make your overall status red)
# matrix:
# allow_failures:
# - julia_version: nightly

branches:
only:
- master
- /release-.*/

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

install:
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))

build_script:
- echo "%JL_BUILD_SCRIPT%"
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"

test_script:
- echo "%JL_TEST_SCRIPT%"
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

# # Uncomment to support code coverage upload. Should only be enabled for packages
# # which would have coverage gaps without running on Windows
# on_success:
# - echo "%JL_CODECOV_SCRIPT%"
# - C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%"
4 changes: 3 additions & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using BinaryProvider # requires BinaryProvider 0.3.0 or later
using Compat

# Parse some basic command-line arguments
const verbose = "--verbose" in ARGS
const prefix = Prefix(get([a for a in ARGS if a != "--verbose"], 1, joinpath(@__DIR__, "usr")))
products = [
LibraryProduct(prefix, ["libgsl."], :libgsl),
# work around for https://github.com/JuliaPackaging/BinaryProvider.jl/issues/133
LibraryProduct(prefix, [Compat.Sys.iswindows() ? "libgsl" : "libgsl."], :libgsl),
]

# Download binaries from hosted location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ let
m = 2
x = 0.5

@test sf_legendre_Plm_array(lmax, m, x) == [2.25, 5.625, 4.21875, -4.921875]
@test sf_legendre_Plm_deriv_array(lmax, m, x) == ([2.25,5.625,4.21875,-4.921875],
[-3.0,3.75,33.75,55.78125])
@test sf_legendre_sphPlm_array(lmax, m, x) == [0.2897056515173923, 0.38324455366248106,
# these give subtly different answers on 32/64-bit.
@test sf_legendre_Plm_array(lmax, m, x) [2.25, 5.625, 4.21875, -4.921875]
@test sf_legendre_Plm_deriv_array(lmax, m, x)[1] [2.25,5.625,4.21875,-4.921875]
@test sf_legendre_Plm_deriv_array(lmax, m, x)[2] [-3.0,3.75,33.75,55.78125]
@test sf_legendre_sphPlm_array(lmax, m, x) [0.2897056515173923, 0.38324455366248106,
0.18816934037548766, -0.15888479843070935]
@test sf_legendre_sphPlm_deriv_array(lmax, m, x) == ([0.2897056515173923,0.38324455366248106,
0.18816934037548766,-0.15888479843070935],
[-0.38627420202318974,0.2554963691083207,
1.5053547230039015,1.8006943822147061])
@test sf_legendre_sphPlm_deriv_array(lmax, m, x)[1] [0.2897056515173923,0.38324455366248106,
0.18816934037548766,-0.15888479843070935]
@test sf_legendre_sphPlm_deriv_array(lmax, m, x)[2] [-0.38627420202318974,0.2554963691083207,
1.5053547230039015,1.8006943822147061]

end

0 comments on commit c3f99e7

Please sign in to comment.