Skip to content

Commit c6c05a1

Browse files
committed
Updating CI
1 parent 4c195b5 commit c6c05a1

2 files changed

Lines changed: 24 additions & 54 deletions

File tree

.travis.yml

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,25 @@
1-
## Documentation: http://docs.travis-ci.com/user/languages/julia/
1+
# Documentation: http://docs.travis-ci.com/user/languages/julia/
22
language: julia
3+
34
os:
45
- linux
5-
- osx
6+
67
julia:
7-
- 0.6
8+
- 1.0
9+
- 1.2
810
- nightly
9-
notifications:
10-
email: false
11-
git:
12-
depth: 99999999
1311

14-
## uncomment the following lines to allow failures on nightly julia
15-
## (tests will run but not make your overall status red)
16-
#matrix:
17-
# allow_failures:
18-
# - julia: nightly
12+
matrix:
13+
allow_failures:
14+
- julia: nightly
1915

20-
## uncomment and modify the following lines to manually install system packages
21-
#addons:
22-
# apt: # apt-get for linux
23-
# packages:
24-
# - gfortran
25-
#before_script: # homebrew for mac
26-
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi
16+
codecov: true
2717

28-
## uncomment the following lines to override the default test script
18+
coveralls: true
19+
20+
notifications:
21+
email: false
22+
# uncomment the following lines to override the default test script
2923
#script:
30-
# - julia -e 'Pkg.clone(pwd()); Pkg.build("ModelBasedCF"); Pkg.test("ModelBasedCF"; coverage=true)'
31-
after_success:
32-
# push coverage results to Coveralls
33-
- julia -e 'cd(Pkg.dir("ModelBasedCF")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
34-
# push coverage results to Codecov
35-
- julia -e 'cd(Pkg.dir("ModelBasedCF")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
24+
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
25+
# - julia -e 'Pkg.clone(pwd()); Pkg.build("Persa"); Pkg.test("Persa"; coverage=true)'

appveyor.yml

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
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://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
6-
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
7-
8-
## uncomment the following lines to allow failures on nightly julia
9-
## (tests will run but not make your overall status red)
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: 1.0
4+
- julia_version: 1.2
5+
- julia_version: latest
146

157
branches:
168
only:
@@ -24,24 +16,12 @@ notifications:
2416
on_build_status_changed: false
2517

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

4021
build_script:
41-
# Need to convert from shallow to complete for Pkg.clone to work
42-
- IF EXIST .git\shallow (git fetch --unshallow)
43-
- C:\projects\julia\bin\julia -e "versioninfo();
44-
Pkg.clone(pwd(), \"ModelBasedCF\"); Pkg.build(\"ModelBasedCF\")"
22+
- echo "%JL_BUILD_SCRIPT%"
23+
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
4524

4625
test_script:
47-
- C:\projects\julia\bin\julia -e "Pkg.test(\"ModelBasedCF\")"
26+
- echo "%JL_TEST_SCRIPT%"
27+
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

0 commit comments

Comments
 (0)