├── REQUIRE ├── .codecov.yml ├── .gitignore ├── src ├── types.jl ├── greetings.jl └── Cincinnati.jl ├── README.md ├── test └── runtests.jl ├── LICENSE.md ├── .travis.yml └── appveyor.yml /REQUIRE: -------------------------------------------------------------------------------- 1 | julia 0.6 2 | -------------------------------------------------------------------------------- /.codecov.yml: -------------------------------------------------------------------------------- 1 | comment: false 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.jl.cov 2 | *.jl.*.cov 3 | *.jl.mem 4 | -------------------------------------------------------------------------------- /src/types.jl: -------------------------------------------------------------------------------- 1 | struct Point2D 2 | x::Float64 3 | y::Float64 4 | end 5 | -------------------------------------------------------------------------------- /src/greetings.jl: -------------------------------------------------------------------------------- 1 | 2 | 3 | greeting(name) = "Hello, $name" 4 | 5 | bye(name) = "Bye, $(name)!" 6 | -------------------------------------------------------------------------------- /src/Cincinnati.jl: -------------------------------------------------------------------------------- 1 | module Cincinnati 2 | 3 | export greeting, bye 4 | 5 | 6 | include("greetings.jl") 7 | include("types.jl") 8 | 9 | end # module 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cincinnati 2 | 3 | [![Build Status](https://travis-ci.org/dpsanders/Cincinnati.jl.svg?branch=master)](https://travis-ci.org/dpsanders/Cincinnati.jl) 4 | 5 | [![Coverage Status](https://coveralls.io/repos/dpsanders/Cincinnati.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/dpsanders/Cincinnati.jl?branch=master) 6 | 7 | [![codecov.io](http://codecov.io/github/dpsanders/Cincinnati.jl/coverage.svg?branch=master)](http://codecov.io/github/dpsanders/Cincinnati.jl?branch=master) 8 | -------------------------------------------------------------------------------- /test/runtests.jl: -------------------------------------------------------------------------------- 1 | using Cincinnati 2 | using Base.Test 3 | 4 | # write your own tests here 5 | @testset "Basic tests" begin 6 | @test Cincinnati.greeting("David") == "Hello, David" 7 | @test Cincinnati.greeting("Jeff") == "Hello, Jeff" 8 | end 9 | 10 | @testset "More tests" begin 11 | @test Cincinnati.greeting("David") == "Hello, David" 12 | @test Cincinnati.greeting("Jeff") == "Hello, Jeff" 13 | end 14 | 15 | @testset "Even more tests" begin 16 | @test Cincinnati.greeting("David") == "Hello, David" 17 | @test Cincinnati.greeting("Jeff") == "Hello, Jeff" 18 | end 19 | 20 | @testset "Goodbye tests" begin 21 | @test Cincinnati.bye("David") == "Bye, David!" 22 | end 23 | 24 | @testset "Exported names" begin 25 | @test bye("David") == "Bye, David!" 26 | end 27 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The Cincinnati.jl package is licensed under the MIT "Expat" License: 2 | 3 | > Copyright (c) 2018: David Sanders. 4 | > 5 | > Permission is hereby granted, free of charge, to any person obtaining a copy 6 | > of this software and associated documentation files (the "Software"), to deal 7 | > in the Software without restriction, including without limitation the rights 8 | > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | > copies of the Software, and to permit persons to whom the Software is 10 | > furnished to do so, subject to the following conditions: 11 | > 12 | > The above copyright notice and this permission notice shall be included in all 13 | > copies or substantial portions of the Software. 14 | > 15 | > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | > SOFTWARE. 22 | > 23 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | ## Documentation: http://docs.travis-ci.com/user/languages/julia/ 2 | language: julia 3 | os: 4 | - linux 5 | - osx 6 | julia: 7 | - 0.6 8 | - nightly 9 | notifications: 10 | email: false 11 | git: 12 | depth: 99999999 13 | 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 19 | 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 27 | 28 | ## uncomment the following lines to override the default test script 29 | #script: 30 | # - julia -e 'Pkg.clone(pwd()); Pkg.build("Cincinnati"); Pkg.test("Cincinnati"; coverage=true)' 31 | after_success: 32 | # push coverage results to Coveralls 33 | - julia -e 'cd(Pkg.dir("Cincinnati")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' 34 | # push coverage results to Codecov 35 | - julia -e 'cd(Pkg.dir("Cincinnati")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())' 36 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | environment: 2 | 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" 14 | 15 | branches: 16 | only: 17 | - master 18 | - /release-.*/ 19 | 20 | notifications: 21 | - provider: Email 22 | on_build_success: false 23 | on_build_failure: false 24 | on_build_status_changed: false 25 | 26 | 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 39 | 40 | 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(), \"Cincinnati\"); Pkg.build(\"Cincinnati\")" 45 | 46 | test_script: 47 | - C:\projects\julia\bin\julia -e "Pkg.test(\"Cincinnati\")" 48 | --------------------------------------------------------------------------------