From 3400fe85779fe36839877082d229dbfcee17d0dc Mon Sep 17 00:00:00 2001 From: Jutho Haegeman Date: Tue, 10 Jul 2018 02:07:31 +0200 Subject: [PATCH 1/3] update tests --- test/runtests.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 88e9fc4..d824beb 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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 From 7f91c5acc0719ef8c5de15e52c35fae1d914b302 Mon Sep 17 00:00:00 2001 From: Jutho Haegeman Date: Tue, 10 Jul 2018 02:09:36 +0200 Subject: [PATCH 2/3] update travis and require --- .travis.yml | 2 +- REQUIRE | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 878ae23..e9e7bf3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ os: - linux - osx julia: - - 0.6 + - 0.7 - nightly notifications: email: false diff --git a/REQUIRE b/REQUIRE index f6eb0e5..cd4a598 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,2 +1,2 @@ -julia 0.7.0-alpha +julia 0.7- Primes From 38524431e1c6f48ed9972091c9ec81ab60908829 Mon Sep 17 00:00:00 2001 From: Jutho Haegeman Date: Tue, 10 Jul 2018 02:16:13 +0200 Subject: [PATCH 3/3] more update travis --- .codecov.yml | 1 - .travis.yml | 32 +++++++------------------------- appveyor.yml | 47 ----------------------------------------------- 3 files changed, 7 insertions(+), 73 deletions(-) delete mode 100644 .codecov.yml delete mode 100644 appveyor.yml diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index 69cb760..0000000 --- a/.codecov.yml +++ /dev/null @@ -1 +0,0 @@ -comment: false diff --git a/.travis.yml b/.travis.yml index e9e7bf3..d9c4c39 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -## Documentation: http://docs.travis-ci.com/user/languages/julia/ +# Documentation: http://docs.travis-ci.com/user/languages/julia/ language: julia os: - linux @@ -6,30 +6,12 @@ os: julia: - 0.7 - nightly -notifications: - email: false -git: - depth: 99999999 - -## 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 +matrix: + allow_failures: + - julia: nightly +notifications: + email: false -## 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())'; diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 7ced8d8..0000000 --- a/appveyor.yml +++ /dev/null @@ -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\")"