Skip to content

Commit 655803e

Browse files
committed
Fix Travis and AppVeyor
Take inspiration from Pkg.jl to ensure the package is loaded rather than the Statistics stdlib module. Test Julia 1.2 and 1.3 (tests fail on 1.0)
1 parent f876eb6 commit 655803e

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@ os:
33
- linux
44
- osx
55
julia:
6-
- 0.7
7-
- 1.0
6+
- 1.2
7+
- 1.3
88
- nightly
99
notifications:
1010
email: false
1111
# Work around a Travis bug
1212
git:
1313
depth: 999999
14-
# Uncomment the following lines to override the default test script
15-
#script:
16-
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
17-
# - julia -e 'Pkg.clone(pwd()); Pkg.build("StatsBase"); Pkg.test("StatsBase"; coverage=true)'
14+
script:
15+
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
16+
# Needed to take precedence on Julia's version of Statistics
17+
- julia -e 'using UUIDs; write("Project.toml", replace(read("Project.toml", String), r"uuid = .*?\n" =>"uuid = \"$(uuid4())\"\n"))'
18+
- julia --project --check-bounds=yes -e 'import Pkg; Pkg.build(); Pkg.test(; coverage=true)'
1819
after_success:
1920
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())';
2021
jobs:
2122
include:
2223
- stage: "Documentation"
23-
julia: 1.0
24+
julia: 1.2
2425
os: linux
2526
script:
2627
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));

appveyor.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
environment:
22
matrix:
3-
- julia_version: 0.7
4-
- julia_version: 1.0
3+
- julia_version: 1.2
4+
- julia_version: 1.3
55
- julia_version: nightly
66

77
platform:
@@ -29,8 +29,11 @@ install:
2929
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
3030

3131
build_script:
32-
- echo "%JL_BUILD_SCRIPT%"
33-
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
32+
- C:\julia\bin\julia -e "using InteractiveUtils; versioninfo();
33+
using UUIDs;
34+
# Needed to take precedence on Julia's version of Statistics
35+
write(\"Project.toml\", replace(read(\"Project.toml\", String), r"uuid = .*?\\\\n\" =>\"uuid = \\\\"$(uuid4())\\\\"\\\\n\"))'
36+
import Pkg; Pkg.build()"
3437

3538
test_script:
3639
- echo "%JL_TEST_SCRIPT%"

0 commit comments

Comments
 (0)