From 3f5f107c81e7ad9962cde72c2b0451cffb2fa0aa Mon Sep 17 00:00:00 2001 From: Spencer Russell Date: Mon, 8 Aug 2016 23:39:46 -0400 Subject: [PATCH] now travis and appveyor should at least test installability --- .travis.yml | 11 ++++------- appveyor.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml index 78c8453..b956703 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,17 +3,14 @@ language: julia os: - linux - osx -sudo: required +# sudo: required julia: # - release - 0.4 - - nightly + - 0.5 notifications: email: false script: - # SampledSignals is unregistered so clone it for testing - - julia -e 'Pkg.clone("https://github.com/JuliaAudio/SampledSignals.jl.git")' + # we can't actually run on travis, so just make sure it's installable - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi - - julia -e 'Pkg.clone(pwd()); Pkg.build("PortAudio"); Pkg.test("PortAudio"; coverage=true)' -after_success: - - julia -e 'cd(Pkg.dir("PortAudio")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())' + - julia -e 'Pkg.clone(pwd()); Pkg.build("PortAudio"); using PortAudio' diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..1b4cf6e --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,35 @@ +environment: + matrix: + - JULIAVERSION: "julialang/bin/winnt/x86/0.4/julia-0.4-latest-win32.exe" + - JULIAVERSION: "julialang/bin/winnt/x64/0.4/julia-0.4-latest-win64.exe" + - JULIAVERSION: "julialang/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe" + - JULIAVERSION: "julialang/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe" + +branches: + only: + - master + - /release-.*/ + +notifications: + - provider: Email + on_build_success: false + on_build_failure: false + on_build_status_changed: false + +install: +# Download most recent Julia Windows binary + - ps: (new-object net.webclient).DownloadFile( + $("http://s3.amazonaws.com/"+$env:JULIAVERSION), + "C:\projects\julia-binary.exe") +# Run installer silently, output to C:\projects\julia + - C:\projects\julia-binary.exe /S /D=C:\projects\julia + +build_script: +# Need to convert from shallow to complete for Pkg.clone to work + - IF EXIST .git\shallow (git fetch --unshallow) + - C:\projects\julia\bin\julia -e "versioninfo(); + Pkg.clone(pwd(), \"SampledSignals\"); Pkg.build(\"SampledSignals\")" + +test_script: + # can't actually run the test, so just make sure it's installable + - C:\projects\julia\bin\julia -e "using SampledSignals"