Skip to content

Commit 3ed5b36

Browse files
committed
update CI scripts
1 parent e135a2e commit 3ed5b36

File tree

2 files changed

+27
-21
lines changed

2 files changed

+27
-21
lines changed

.travis.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ os:
33
- linux
44
- osx
55
julia:
6-
# - 0.7 uncomment once 0.7 is out
6+
- 0.7
7+
- 1.0
78
- nightly
8-
#matrix: uncomment once 0.7 is out
9-
# allow_failures:
10-
# - julia: nightly
9+
matrix:
10+
allow_failures:
11+
- julia: nightly
1112
notifications:
1213
email: false
13-
script:
14-
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
15-
- julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("BlackBoxOptim"); Pkg.test("BlackBoxOptim"; coverage=true)'
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 --check-bounds=yes -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("RData"); Pkg.test("RData"; coverage=true)'
1618
after_success:
17-
- julia -e 'cd(Pkg.dir("BlackBoxOptim")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
19+
- julia -e 'using Pkg, BlackBoxOptim; cd(joinpath(dirname(pathof(BlackBoxOptim)), "..")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

appveyor.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
environment:
22
matrix:
3-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.7/julia-0.7-latest-win32.exe"
4-
- 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+
- julia_version: latest
6+
7+
platform:
8+
- x86 # 32-bit
9+
- x64 # 64-bit
10+
11+
matrix:
12+
allow_failures:
13+
- julia_version: latest
514

615
branches:
716
only:
817
- master
18+
- /release-.*/
919

1020
notifications:
1121
- provider: Email
@@ -14,18 +24,12 @@ notifications:
1424
on_build_status_changed: false
1525

1626
install:
17-
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
18-
# Download most recent Julia Windows binary
19-
- ps: (new-object net.webclient).DownloadFile(
20-
$env:JULIA_URL,
21-
"C:\projects\julia-binary.exe")
22-
# Run installer silently, output to C:\projects\julia
23-
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
27+
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
2428

2529
build_script:
26-
# Need to convert from shallow to complete for Pkg.clone to work
27-
- IF EXIST .git\shallow (git fetch --unshallow)
28-
- C:\projects\julia\bin\julia -e "Pkg.clone(pwd(), \"BlackBoxOptim\"); versioninfo(); Pkg.build(\"BlackBoxOptim\")"
30+
- echo "%JL_BUILD_SCRIPT%"
31+
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
2932

3033
test_script:
31-
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"BlackBoxOptim\")"
34+
- echo "%JL_TEST_SCRIPT%"
35+
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

0 commit comments

Comments
 (0)