Run command with virtual X server
This commit is contained in:
parent
69a5a04baa
commit
b83a2d97f3
2 changed files with 7 additions and 2 deletions
|
@ -23,8 +23,8 @@ jobs:
|
|||
- ~/.cargo
|
||||
- run: make test
|
||||
- run:
|
||||
command: cargo run -- build
|
||||
command: ./.circleci/xserver.sh cargo run -- build
|
||||
working_directory: ~/md-pdf/test-files
|
||||
- run:
|
||||
command: cargo run --release -- build
|
||||
command: ./.circleci/xserver.sh cargo run --release -- build
|
||||
working_directory: ~/md-pdf/test-files
|
||||
|
|
5
.circleci/xserver.sh
Normal file
5
.circleci/xserver.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
xvfb-run -a --server-args="-screen 0 800x600x24" $@
|
Reference in a new issue