Run command with virtual X server

This commit is contained in:
Jake Howard 2017-09-01 20:29:05 +01:00
parent 69a5a04baa
commit b83a2d97f3
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 7 additions and 2 deletions

View file

@ -23,8 +23,8 @@ jobs:
- ~/.cargo - ~/.cargo
- run: make test - run: make test
- run: - run:
command: cargo run -- build command: ./.circleci/xserver.sh cargo run -- build
working_directory: ~/md-pdf/test-files working_directory: ~/md-pdf/test-files
- run: - run:
command: cargo run --release -- build command: ./.circleci/xserver.sh cargo run --release -- build
working_directory: ~/md-pdf/test-files working_directory: ~/md-pdf/test-files

5
.circleci/xserver.sh Normal file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
xvfb-run -a --server-args="-screen 0 800x600x24" $@