run travis_commands.jl before script

This commit is contained in:
Daniel Schwabeneder 2017-08-25 11:35:12 +02:00
parent 64f364f71d
commit c0dd091bee
3 changed files with 7 additions and 6 deletions

View File

@ -42,7 +42,7 @@ before_install:
notifications: notifications:
email: true email: true
# uncomment the following lines to override the default test script # uncomment the following lines to override the default test script
script: before_script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd()); Pkg.build("Plots")' - julia -e 'Pkg.clone(pwd()); Pkg.build("Plots")'
- julia test/travis_commands.jl - julia test/travis_commands.jl
@ -54,6 +54,7 @@ script:
# # - julia -e 'Pkg.clone("https://github.com/spencerlyon2/PlotlyJS.jl.git")' # # - julia -e 'Pkg.clone("https://github.com/spencerlyon2/PlotlyJS.jl.git")'
# - julia -e 'ENV["PYTHON"] = ""; Pkg.add("PyPlot"); Pkg.build("PyPlot")' # - julia -e 'ENV["PYTHON"] = ""; Pkg.add("PyPlot"); Pkg.build("PyPlot")'
# #
script:
# # - $TESTCMD -e 'Pkg.test("Plots"; coverage=false)' # # - $TESTCMD -e 'Pkg.test("Plots"; coverage=false)'
# - julia -e 'Pkg.test("Plots"; coverage=false)' - julia -e 'Pkg.test("Plots"; coverage=false)'
# # - julia -e 'cd(Pkg.dir("Plots")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())' # # - julia -e 'cd(Pkg.dir("Plots")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'

View File

@ -27,7 +27,7 @@ build_script:
# Need to convert from shallow to complete for Pkg.clone to work # Need to convert from shallow to complete for Pkg.clone to work
- IF EXIST .git\shallow (git fetch --unshallow) - IF EXIST .git\shallow (git fetch --unshallow)
- C:\projects\julia\bin\julia -e "versioninfo(); Pkg.clone(pwd(), \"Plots\"); Pkg.build(\"Plots\")" - C:\projects\julia\bin\julia -e "versioninfo(); Pkg.clone(pwd(), \"Plots\"); Pkg.build(\"Plots\")"
- C:\projects\julia\bin\julia -e "include(Pkg.dir(\"Plots\", \"test\", \"travis_commands.jl\"))"
test_script: test_script:
# - C:\projects\julia\bin\julia -e "Pkg.test(\"Plots\")" - C:\projects\julia\bin\julia -e "Pkg.test(\"Plots\")"
- C:\projects\julia\bin\julia -e "include(Pkg.dir(\"Plots\", \"test\", \"travis_commands.jl\"))"

View File

@ -23,9 +23,9 @@ Pkg.checkout("PlotUtils")
# need this to use Conda # need this to use Conda
ENV["PYTHON"] = "" ENV["PYTHON"] = ""
Pkg.clone("PyPlot") Pkg.add("PyPlot")
Pkg.build("PyPlot") Pkg.build("PyPlot")
# Pkg.add("InspectDR") # Pkg.add("InspectDR")
Pkg.test("Plots"; coverage=false) # Pkg.test("Plots"; coverage=false)