Allow failure on nightly, fix tests

This commit is contained in:
Chris de Graaf 2017-08-29 12:24:39 +01:00
parent 7329fbcf90
commit 34658bcb31
3 changed files with 12 additions and 6 deletions

View File

@ -5,10 +5,11 @@ environment:
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
branches:
only:
- master
- /release-.*/
matrix:
allow_failures:
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
notifications:
- provider: Email

View File

@ -5,6 +5,10 @@ os:
julia:
- 0.6
- nightly
matrix:
allow_failures:
- julia: nightly
fast_finish: true
notifications:
email: false
script:

View File

@ -382,10 +382,11 @@ end
rm(Pkg.dir(test_pkg); recursive=true)
# Note: These tests will leave temporary directories on disk.
temp_file = mktemp()[1]
temp_file, fd = mktemp()
close(fd)
t = Template(; user=me, dir=temp_file, gitconfig=gitconfig)
@test_warn r".+" generate(test_pkg, t)
t = Template(; user=me, dir=joinpath(temp_file, temp_file), gitconfig=gitconfig)
t = Template(; user=me, dir=joinpath(temp_file, "file"), gitconfig=gitconfig)
@test_warn r".+" generate(test_pkg, t)
rm(temp_file)