diff --git a/README.md b/README.md index c3dac76..8c69f4d 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..e08da30 --- /dev/null +++ b/appveyor.yml @@ -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%" diff --git a/deps/build.jl b/deps/build.jl index e6e78bc..9ebb7fd 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -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 diff --git a/test/7_24_2_Associated_Legendre_Polynomials_and_Spherical_Harmonics.jl b/test/7_24_2_Associated_Legendre_Polynomials_and_Spherical_Harmonics.jl index 7544365..ef1944a 100644 --- a/test/7_24_2_Associated_Legendre_Polynomials_and_Spherical_Harmonics.jl +++ b/test/7_24_2_Associated_Legendre_Polynomials_and_Spherical_Harmonics.jl @@ -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