Skip to content

Commit

Permalink
Add Project.toml file, update default test script.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Nov 8, 2018
1 parent 77582eb commit 9a4cb66
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ deps/custom_preamble.tex
deps/deps.jl
deps/pdf2svg.svg
deps/showed_warning
/Manifest.toml
24 changes: 24 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name = "PGFPlotsX"
uuid = "8314cec4-20b6-5062-9cdb-752b83310925"

[deps]
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
Crayons = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DefaultApplication = "3f0dd361-4fe0-5fc6-8523-80b14ec94d85"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
Missings = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28"
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

[extras]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "Measurements", "DataFrames"]
6 changes: 0 additions & 6 deletions test/REQUIRE

This file was deleted.

3 changes: 0 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using Test
using PGFPlotsX
using PGFPlotsX: Options
using Colors
using Contour
using DataFrames
using Dates
using LaTeXStrings
using Measurements

if get(ENV, "CI", false) == true
Expand Down
3 changes: 1 addition & 2 deletions travis_docker_env.list
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ TRAVIS_REPO_SLUG
TRAVIS_TAG
TRAVIS_OS_NAME
TRAVIS_JULIA_VERSION
# comment this out to debug Documenter.jl
# DOCUMENTER_DEBUG=true
JULIA_PROJECT
9 changes: 1 addition & 8 deletions travis_docker_test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@

JULIAVER=$1 # the first and only argument to the script is the version
JULIABIN=/test/julia-$JULIAVER/bin/julia
PKGNAME="PGFPlotsX"

## install the image (when necessary)
/test/install-julia.sh $JULIAVER

cd /mnt && if [[ -a .git/shallow ]]; then git fetch --unshallow; fi

# run tests
$JULIABIN -e "import Pkg; Pkg.clone(\"/mnt/\", \"$PKGNAME\"); Pkg.build(\"$PKGNAME\"); Pkg.test(\"$PKGNAME\"; coverage=true)"
TEST_EXIT=$? # return with this

# save coverage results back to host
PKGDIR=`$JULIABIN -e "import Pkg, $PKGNAME; print(joinpath(dirname(pathof($PKGNAME)), ".."))"`
rsync -mav --include="*/" --include="*.cov" --exclude="*" $PKGDIR/ /mnt/
exit $TEST_EXIT
$JULIABIN -e "import Pkg; Pkg.build(); Pkg.test(; coverage=true)"

0 comments on commit 9a4cb66

Please sign in to comment.