From a2456fc2fb4a5ec96f03f7d50504deff14bd2450 Mon Sep 17 00:00:00 2001 From: John Lapeyre Date: Thu, 2 Aug 2018 11:24:50 +0200 Subject: [PATCH] update CI files --- .travis.yml | 25 ++++++++++--------------- README.md | 15 ++++++++++++++- appveyor.yml | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 16 deletions(-) create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml index bf75925..031ea42 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,12 @@ -language: cpp -compiler: - - clang +# Documentation: http://docs.travis-ci.com/user/languages/julia/ +language: julia +os: + - linux + - osx +julia: + - 0.7 + - nightly notifications: email: false -env: - matrix: - - JULIAVERSION="juliareleases" - - JULIAVERSION="julianightlies" -before_install: - - sudo add-apt-repository ppa:staticfloat/julia-deps -y - - sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y - - sudo apt-get update -qq -y - - sudo apt-get install libpcre3-dev julia -y - - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi -script: - - julia --check-bounds=yes -e 'versioninfo(); Pkg.init(); Pkg.clone(pwd()); Pkg.build("DeepConvert"); Pkg.test("DeepConvert")' +after_success: + - julia -e 'Pkg.add("Coverage"); cd(Pkg.dir("DeepConvert")); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())' diff --git a/README.md b/README.md index 185f7a4..c372b86 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,15 @@ # DeepConvert +*convenient literal construction of values of large data types* + + +Linux, OSX: [![Build Status](https://travis-ci.org/jlapeyre/DeepConvert.jl.svg?branch=master)](https://travis-ci.org/jlapeyre/DeepConvert.jl) +  +Windows: [![Build Status](https://ci.appveyor.com/api/projects/status/github/jlapeyre/DeepConvert.jl?branch=master&svg=true)](https://ci.appveyor.com/project/jlapeyre/deepconvert-jl) +      +[![Coverage Status](https://coveralls.io/repos/jlapeyre/DeepConvert.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/jlapeyre/DeepConvert.jl?branch=master) +[![codecov.io](http://codecov.io/github/jlapeyre/DeepConvert.jl/coverage.svg?branch=master)](http://codecov.io/github/jlapeyre/DeepConvert.jl?branch=master) + This package provides convenient literal construction of values of large data types. @@ -24,7 +34,7 @@ julia> BigInt[2^63, 2^64] 0 julia> using DeepConvert -julia> a = bi"[2^63, 2^64]" +julia> bi"[2^63, 2^64]" 2-element Array{BigInt, 1}: 9223372036854775808 18446744073709551616 @@ -36,6 +46,9 @@ julia> @bigint [2^63, 2^64] ``` ```julia +julia> binomial(100, 50) +ERROR: OverflowError: binomial(100, 50) overflows + julia> @int128 binomial(100, 50) 100891344545564193334812497256 ``` diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..a8f25a4 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,36 @@ +environment: + matrix: + - julia_version: 0.7 + - julia_version: latest + +platform: + - x64 # 64-bit +# - x86 # 32-bit + +## uncomment the following lines to allow failures on nightly julia +## (tests will run but not make your overall status red) +#matrix: +# allow_failures: +# - julia_version: latest + +branches: + only: + - master + - /release-.*/ + +notifications: + - provider: Email + on_build_success: false + on_build_failure: false + on_build_status_changed: false + +install: + - ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1")) + +build_script: + - echo "%JL_BUILD_SCRIPT%" + - C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%" + +test_script: + - echo "%JL_TEST_SCRIPT%" + - C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"