mirror of
https://github.com/tgorordo/WignerSymbols.jl.git
synced 2026-06-05 15:42:15 -07:00
update tests for julia 0.7
This commit is contained in:
commit
396bc52d2e
5 changed files with 12 additions and 78 deletions
|
|
@ -1 +0,0 @@
|
|||
comment: false
|
||||
34
.travis.yml
34
.travis.yml
|
|
@ -1,35 +1,17 @@
|
|||
## Documentation: http://docs.travis-ci.com/user/languages/julia/
|
||||
# Documentation: http://docs.travis-ci.com/user/languages/julia/
|
||||
language: julia
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
julia:
|
||||
- 0.6
|
||||
- 0.7
|
||||
- nightly
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- julia: nightly
|
||||
notifications:
|
||||
email: false
|
||||
git:
|
||||
depth: 99999999
|
||||
email: false
|
||||
|
||||
## uncomment the following lines to allow failures on nightly julia
|
||||
## (tests will run but not make your overall status red)
|
||||
#matrix:
|
||||
# allow_failures:
|
||||
# - julia: nightly
|
||||
|
||||
## uncomment and modify the following lines to manually install system packages
|
||||
#addons:
|
||||
# apt: # apt-get for linux
|
||||
# packages:
|
||||
# - gfortran
|
||||
#before_script: # homebrew for mac
|
||||
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi
|
||||
|
||||
## uncomment the following lines to override the default test script
|
||||
#script:
|
||||
# - julia -e 'Pkg.clone(pwd()); Pkg.build("WignerSymbols"); Pkg.test("WignerSymbols"; coverage=true)'
|
||||
after_success:
|
||||
# push coverage results to Coveralls
|
||||
- julia -e 'cd(Pkg.dir("WignerSymbols")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
|
||||
# push coverage results to Codecov
|
||||
- julia -e 'cd(Pkg.dir("WignerSymbols")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
|
||||
- julia -e 'cd(Pkg.dir("WignerSymbols")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder()); Codecov.submit(process_folder())';
|
||||
|
|
|
|||
2
REQUIRE
2
REQUIRE
|
|
@ -1,2 +1,2 @@
|
|||
julia 0.7.0-alpha
|
||||
julia 0.7-
|
||||
Primes
|
||||
|
|
|
|||
47
appveyor.yml
47
appveyor.yml
|
|
@ -1,47 +0,0 @@
|
|||
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"
|
||||
|
||||
## uncomment the following lines to allow failures on nightly julia
|
||||
## (tests will run but not make your overall status red)
|
||||
#matrix:
|
||||
# allow_failures:
|
||||
# - 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
|
||||
- /release-.*/
|
||||
|
||||
notifications:
|
||||
- provider: Email
|
||||
on_build_success: false
|
||||
on_build_failure: false
|
||||
on_build_status_changed: false
|
||||
|
||||
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:
|
||||
# Need to convert from shallow to complete for Pkg.clone to work
|
||||
- IF EXIST .git\shallow (git fetch --unshallow)
|
||||
- C:\projects\julia\bin\julia -e "versioninfo();
|
||||
Pkg.clone(pwd(), \"WignerSymbols\"); Pkg.build(\"WignerSymbols\")"
|
||||
|
||||
test_script:
|
||||
- C:\projects\julia\bin\julia -e "Pkg.test(\"WignerSymbols\")"
|
||||
|
|
@ -18,8 +18,8 @@ end
|
|||
#--------
|
||||
@testset "clebschgordan: test orthogonality" begin
|
||||
for j1 in smalljlist, j2 in smalljlist
|
||||
d1 = 2*j1+1
|
||||
d2 = 2*j2+1
|
||||
d1::Int = 2*j1+1
|
||||
d2::Int = 2*j2+1
|
||||
M = zeros(Float64, (d1*d2, d1*d2))
|
||||
ind1 = 1
|
||||
for m1 in -j1:j1, m2 in -j2:j2
|
||||
|
|
@ -130,7 +130,7 @@ end
|
|||
end
|
||||
end
|
||||
end
|
||||
@test racahW(j1,j2,J,j3,J12,J23) ≈ vecdot(V2,V1)/sqrt((2*J12+1)*(2*J23+1)) atol=10*eps(Float64)
|
||||
@test racahW(j1,j2,J,j3,J12,J23) ≈ dot(V2,V1)/sqrt((2*J12+1)*(2*J23+1)) atol=10*eps(Float64)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue