Skip to content

Commit

Permalink
Merge pull request #12 from tanmaykm/compat
Browse files Browse the repository at this point in the history
Julia 1.0 compat, dropped < 1.0 support
  • Loading branch information
tanmaykm authored Oct 1, 2018
2 parents fd0d218 + 51a4005 commit af6d267
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 22 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ os:
- linux
- osx
julia:
- 0.6
- 0.7
- 1.0
- nightly
services:
- memcached
Expand All @@ -15,8 +14,8 @@ before_install:
- if [ "$TRAVIS_OS_NAME" = osx ]; then /usr/local/opt/memcached/bin/memcached -d; fi
notifications:
email: false
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd()); Pkg.build("Memcache"); Pkg.test("Memcache"; coverage=true)'
#script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("Memcache"); Pkg.test("Memcache"; coverage=true)'
after_success:
- julia -e 'cd(Pkg.dir("Memcache")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder());'
4 changes: 1 addition & 3 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
julia 0.6

Compat 0.69.0
julia 1.0
7 changes: 3 additions & 4 deletions src/Memcache.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
module Memcache

using Compat
using Compat.Sockets
using Compat.Serialization
using Sockets
using Serialization

import Base: close, touch, get, replace, quit
import Base: close, touch, get, replace

export set, cas, add, replace, append, prepend, get, touch, incr, decr, delete
export MemcacheClient, stats, version, flush_all, close, slabs_reassign, slabs_automove, quit
Expand Down
5 changes: 0 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using Memcache

if isless(Base.VERSION, v"0.7.0-")
using Base.Test
else
using Test
end

@test isa(Memcache, Module)

Expand Down
5 changes: 0 additions & 5 deletions test/test.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using Memcache

if isless(Base.VERSION, v"0.7.0-")
using Base.Test
else
using Test
end

function test_begin()
mc = MemcacheClient()
Expand Down

0 comments on commit af6d267

Please sign in to comment.