Skip to content

Commit 29bc209

Browse files
committed
Remove xvfb and set gkswstype to nul
1 parent 2fd813d commit 29bc209

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ addons:
1616
apt:
1717
packages:
1818
- libgtk-3-dev
19-
- xvfb
2019
- dvipng
2120
- texlive
2221
cache:
@@ -25,15 +24,12 @@ cache:
2524
- $HOME/.julia/artifacts
2625

2726
env:
28-
- PLOTS_TEST="true" GKSwstype="100"
27+
- PLOTS_TEST="true" GKSwstype="nul"
2928

3029
script:
3130
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
32-
# Needed for plotting on travis
33-
- if [[ `uname` = "Linux" ]]; then TESTCMD="xvfb-run julia"; else TESTCMD="julia"; fi
34-
- $TESTCMD -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true)'
31+
- julia -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true)'
3532

3633
after_success:
3734
- julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
38-
- if [[ `uname` = "Linux" ]]; then TESTCMD="xvfb-run julia"; else TESTCMD="julia"; fi
39-
- $TESTCMD --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate();import ControlSystems; cd(joinpath(dirname(pathof(ControlSystems)), "..")); include(joinpath("docs", "make.jl"))'
35+
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate();import ControlSystems; cd(joinpath(dirname(pathof(ControlSystems)), "..")); include(joinpath("docs", "make.jl"))'

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Set plot globals
22
ENV["PLOTS_TEST"] = "true"
3-
ENV["GKSwstype"] = "100"
3+
ENV["GKSwstype"] = "nul"
44

55
using Documenter, ControlSystems, Plots, LinearAlgebra, DSP
66
import GR # Bug with world age in Plots.jl, see https://github.com/JuliaPlots/Plots.jl/issues/1047

test/test_plots.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Set plot globals
22
ENV["PLOTS_TEST"] = "true"
3-
ENV["GKSwstype"] = "100"
3+
ENV["GKSwstype"] = "nul"
44

55
using Plots
66
gr()

0 commit comments

Comments
 (0)