Skip to content

Commit

Permalink
Merge pull request #14 from SebastianM-C/xvfb
Browse files Browse the repository at this point in the history
Fix xclip
  • Loading branch information
SebastianM-C authored Aug 12, 2021
2 parents 86f04ea + 5648af6 commit 48ce374
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6'
- '1'
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
include:
- os: ubuntu-latest
prefix: xvfb-run
steps:
- name: Install xclip
run: sudo apt install -y xorg xclip
env:
DISPLAY: :0
run: sudo apt-get install xclip
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
Expand All @@ -41,6 +42,8 @@ jobs:
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
prefix: ${{ matrix.prefix }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
Expand Down
15 changes: 6 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,22 @@ include("cite_str.jl")
str = make_sentence(citations, jl=false)
@test str == CITE_STR

str = make_sentence(citations, cite_commands=Dict{String,String}("Symbolics"=>"\\autocite"))
str = make_sentence(citations, cite_commands=Dict{String,String}("Symbolics" => "\\autocite"))
@test str == CITE_STR_JL_AUTO

@testset "Clipboard" begin
io = IOBuffer()
get_tool_citation(io)
seekstart(io)
str = read(io, String)
str = String(take!(io))

@test str == CITE_STR_JL*'\n'
@test_broken clipboard() == CITE_STR_JL
@test str == CITE_STR_JL * '\n'
@test clipboard() == CITE_STR_JL

io = IOBuffer()
get_tool_citation(io, jl=false)
seekstart(io)
str = read(io, String)
str = String(take!(io))

@test str == CITE_STR * '\n'
@test_broken clipboard() == CITE_STR
@test clipboard() == CITE_STR
end
end

Expand Down

0 comments on commit 48ce374

Please sign in to comment.