Skip to content

Commit 74c9ff0

Browse files
authored
Update CI to test against Julia 1.0 (#50)
1 parent c831a70 commit 74c9ff0

File tree

2 files changed

+32
-29
lines changed

2 files changed

+32
-29
lines changed

.appveyor.yml

+22-24
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
environment:
22
matrix:
3-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
4-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
5-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.7/julia-0.7-latest-win32.exe"
6-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7-latest-win64.exe"
7-
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
8-
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
9-
10-
matrix:
11-
allow_failures:
12-
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
13-
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
3+
- julia_version: 0.6
4+
- julia_version: 0.7
5+
- julia_version: 1
6+
- julia_version: nightly
7+
8+
platform:
9+
- x86 # 32-bit
10+
- x64 # 64-bit
11+
12+
# # Uncomment the following lines to allow failures on nightly julia
13+
# # (tests will run but not make your overall status red)
14+
# matrix:
15+
# allow_failures:
16+
# - julia_version: nightly
1417

1518
branches:
1619
only:
@@ -24,21 +27,16 @@ notifications:
2427
on_build_status_changed: false
2528

2629
install:
27-
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
28-
# Download most recent Julia Windows binary
29-
- ps: (new-object net.webclient).DownloadFile(
30-
$env:JULIA_URL,
31-
"C:\projects\julia-binary.exe")
32-
# Run installer silently, output to C:\projects\julia
33-
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
30+
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
3431

3532
build_script:
36-
# Need to convert from shallow to complete for Pkg.clone to work
37-
- IF EXIST .git\shallow (git fetch --unshallow)
38-
- C:\projects\julia\bin\julia -e "versioninfo(); Pkg.clone(pwd(), \"Intervals\"); Pkg.build(\"Intervals\")"
33+
- echo "%JL_BUILD_SCRIPT%"
34+
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
3935

4036
test_script:
41-
- C:\projects\julia\bin\julia -e "Pkg.test(\"Intervals\"; coverage=true)"
37+
- echo "%JL_TEST_SCRIPT%"
38+
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"
4239

43-
after_test:
44-
- C:\projects\julia\bin\julia -e "cd(Pkg.dir(\"Intervals\")); Pkg.add(\"Coverage\"); using Coverage; Codecov.submit(process_folder())"
40+
on_success:
41+
- echo "%JL_CODECOV_SCRIPT%"
42+
- C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%"

.travis.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,21 @@ os:
66
julia:
77
- 0.6
88
- 0.7
9+
- 1.0
910
- nightly
1011
matrix:
1112
allow_failures:
1213
- julia: nightly
1314
fast_finish: true
1415
notifications:
1516
email: false
16-
script:
17-
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
18-
- julia -e 'Pkg.clone(pwd()); Pkg.build("Intervals"); Pkg.test("Intervals"; coverage=true)'
17+
# script:
18+
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
19+
# - julia -e 'Pkg.clone(pwd()); Pkg.build("Intervals"); Pkg.test("Intervals"; coverage=true)'
1920
after_success:
20-
- julia -e 'cd(Pkg.dir("Intervals")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
21-
- julia -e 'Pkg.add("Documenter"); cd(Pkg.dir("Intervals")); include(joinpath("docs", "make.jl"))'
21+
- |
22+
julia -e '
23+
VERSION >= v"0.7.0-DEV.3656" && using Pkg
24+
VERSION >= v"0.7.0-DEV.5183" || cd(Pkg.dir("Intervals"))
25+
Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())
26+
Pkg.add("Documenter"); include(joinpath("docs", "make.jl"))'

0 commit comments

Comments
 (0)