Skip to content

Commit 6fa1c48

Browse files
authored
Enable tests on Travis (#3)
1 parent bd3b5b0 commit 6fa1c48

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ os:
44
- linux
55
- osx
66
julia:
7-
- release
7+
- 0.6
88
- nightly
9+
matrix:
10+
allow_failures:
11+
- julia: nightly
912
notifications:
1013
email: false
11-
# uncomment the following lines to override the default test script
12-
#script:
14+
#script: # the default script is equivalent to the following
1315
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
14-
# - julia -e 'Pkg.clone(pwd()); Pkg.build("DBFTables"); Pkg.test("DBFTables"; coverage=true)'
16+
# - julia -e 'Pkg.clone(pwd()); Pkg.build("DBFTables"); Pkg.test("DBFTables"; coverage=true)';
1517
after_success:
16-
# push coverage results to Coveralls
17-
- julia -e 'cd(Pkg.dir("DBFTables")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
18-
# push coverage results to Codecov
19-
- julia -e 'cd(Pkg.dir("DBFTables")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
18+
- julia -e 'cd(Pkg.dir("Example")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
19+
# - julia -e 'cd(Pkg.dir("Example")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())';

test/runtests.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
using DBFTables
22
using Base.Test
3+
using Missings
34

45
dir = @__DIR__
56
# dir = joinpath(Pkg.dir("DBFTables"), "test")
67
df = DBFTables.read_dbf(joinpath(dir, "test.dbf"))
78

8-
@test size(df,1) == 3 # records
9+
@test size(df,1) == 7 # records
910
@test size(df,2) == 6 # fields
1011
@test df[:CHAR][2] == "John"
1112
@test df[:DATE][1] == "19900102"
@@ -18,4 +19,4 @@ df = DBFTables.read_dbf(joinpath(dir, "test.dbf"))
1819
@test ismissing(df[:BOOL][4])
1920
@test ismissing(df[:FLOAT][5])
2021
@test ismissing(df[:NUMERIC][6])
21-
@test ismissing(df[:INTEGER][7])
22+
@test ismissing(df[:INTEGER][7])

0 commit comments

Comments
 (0)