Skip to content

Commit 389f287

Browse files
authored
Merge pull request #16 from ChevronETC/stk/julia10
more updates for julia 0.7 and 1.0
2 parents a99ac09 + cefb719 commit 389f287

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ os:
44
- osx
55
julia:
66
- 0.7
7+
- 1.0
78
- nightly
89
matrix:
910
allow_failures:

appveyor.yml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
environment:
22
matrix:
3-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7-latest-win64.exe"
3+
- julia_version: 0.7
4+
- julia_version: 1.0
5+
6+
platform:
7+
- x64
48

59
branches:
610
only:
@@ -13,24 +17,13 @@ notifications:
1317
on_build_status_changed: false
1418

1519
install:
16-
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
17-
# If there's a newer build queued for the same PR, cancel this one
18-
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
19-
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
20-
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
21-
throw "There are newer queued builds for this pull request, failing early." }
22-
# Download most recent Julia Windows binary
23-
- ps: (new-object net.webclient).DownloadFile(
24-
$env:JULIA_URL,
25-
"C:\projects\julia-binary.exe")
26-
# Run installer silently, output to C:\projects\julia
27-
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
20+
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
2821

2922
build_script:
30-
# Need to convert from shallow to complete for Pkg.clone to work
31-
- IF EXIST .git\shallow (git fetch --unshallow)
32-
- C:\projects\julia\bin\julia -e "versioninfo();
33-
Pkg.clone(pwd(), \"TeaSeis\"); Pkg.build(\"TeaSeis\")"
23+
- echo "%JL_BUILD_SCRIPT%"
24+
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
3425

3526
test_script:
36-
- C:\projects\julia\bin\julia -e "Pkg.test(\"TeaSeis\")"
27+
- echo "%JL_TEST_SCRIPT%"
28+
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"
29+

src/TeaSeis.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,23 @@ Base.close,
1111
Base.empty!,
1212
Base.get,
1313
Base.in,
14-
Base.ind2sub,
1514
Base.isempty,
1615
Base.length,
1716
Base.ndims,
1817
Base.read,
1918
Base.read!,
2019
Base.sizeof,
21-
Base.sub2ind,
2220
Base.write,
2321
Base.size,
2422
Base.show,
2523
Base.cp,
2624
Base.mv,
2725
Base.rm
2826

27+
if VERSION < v"1.0.0"
28+
import Base.ind2sub, Base.sub2ind
29+
end
30+
2931
include("traceproperty.jl")
3032
include("dataproperty.jl")
3133
include("stockprops.jl")
@@ -86,4 +88,8 @@ tracetype,
8688
leftjustify!,
8789
regularize!
8890

91+
if VERSION >= v"1.0.0"
92+
export ind2sub, sub2ind
93+
end
94+
8995
end

0 commit comments

Comments
 (0)