Skip to content

Commit

Permalink
update to v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Mar 4, 2019
1 parent 51d2a9d commit 74d9d16
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 36 deletions.
46 changes: 19 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,32 @@
## Documentation: http://docs.travis-ci.com/user/languages/julia/
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
- osx
julia:
- 1.0
- 1.1
- nightly
matrix:
allow_failures:
- julia: nightly
fast_finish: true
notifications:
email: false
git:
depth: 99999999

# uncomment the following lines to allow failures on nightly julia
# (tests will run but not make your overall status red)
matrix:
allow_failures:
- julia: nightly
env:
global:
- DOCUMENTER_DEBUG=true

## uncomment and modify the following lines to manually install system packages
#addons:
# apt: # apt-get for linux
# packages:
# - gfortran
#before_script: # homebrew for mac
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi
jobs:
include:
- stage: "Documentation"
julia: 1.0
os: osx
script:
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate(); Pkg.add(PackageSpec(path=pwd()))'
- julia --project=docs/ docs/make.jl
after_success: skip

## uncomment the following lines to override the default test script
#script:
# - julia -e 'Pkg.clone(pwd()); Pkg.build("CacheServers"); Pkg.test("CacheServers"; coverage=true)'
after_success:
# push coverage results to Coveralls
- julia -e 'cd(Pkg.dir("CacheServers")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'cd(Pkg.dir("CacheServers")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
# add Documenter
- julia -e 'using Compat.Pkg; Pkg.add("Documenter")'
# push documents to gh-pages
- julia -e 'using Compat.Pkg; cd(Pkg.dir("CacheServers")); include(joinpath("docs", "make.jl"))'
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
3 changes: 1 addition & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name = "CacheServers"
uuid = "a921213e-d44a-5460-ac04-5d720a99ba71"
authors = ["Roger-luo <hiroger@qq.com>"]
version = "0.1.0-DEV"
version = "0.2.0"

[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
8 changes: 1 addition & 7 deletions src/Default.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ function clear!(server::DefaultServer{K}, object::K) where K
end

function show(io::IO, server::DefaultServer)

@static if VERSION < v"0.7-"
print(io, summary(server))
else
summary(io, server)
end

summary(io, server)
for (key, elem) in server.storage
print(io, key, " => ", elem)
end
Expand Down

0 comments on commit 74d9d16

Please sign in to comment.