Skip to content

Commit

Permalink
Fix Julia v0.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoldfar committed Jan 31, 2019
1 parent 8d680af commit 901a9c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ julia:
- 1.0
- nightly

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

## uncomment the following lines to override the default test script
## uncomment the following lines to override the default test script
#script:
# - julia -e 'Pkg.clone(pwd()); Pkg.build(\"${JL_PKG}\"); Pkg.test(\"${JL_PKG}\"; coverage= true)'

# push coverage results to Coveralls and Codecov
after_success:
- julia -e "VERSION >= v\"0.7.0-DEV.5183\" && using Pkg; cd(\"${TRAVIS_BUILD_DIR}\"); Pkg. add(\"Coverage\"); using Coverage; Coveralls.submit(Coveralls.process_folder())"
- julia -e "VERSION >= v\"0.7.0-DEV.5183\" && using Pkg; cd(\"${TRAVIS_BUILD_DIR}\"); Pkg. add(\"Coverage\"); using Coverage; Codecov.submit(Codecov.process_folder())"
- julia -e "VERSION >= v\"0.7.0-DEV.5183\" && using Pkg; cd(\"${TRAVIS_BUILD_DIR}\"); Pkg.add(\"Coverage\"); using Coverage; Coveralls.submit(Coveralls.process_folder())"
- julia -e "VERSION >= v\"0.7.0-DEV.5183\" && using Pkg; cd(\"${TRAVIS_BUILD_DIR}\"); Pkg.add(\"Coverage\"); using Coverage; Codecov.submit(Codecov.process_folder())"
5 changes: 4 additions & 1 deletion src/TikhonovSamarskii.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
module TikhonovSamarskii
if VERSION >= v"0.6-"
@static if VERSION >= v"0.6-"
import SpecialFunctions: erf
end
@static if VERSION < v"0.7-"
using Compat: range
end

import Base.FastMath: sqrt_fast

Expand Down

0 comments on commit 901a9c3

Please sign in to comment.