From cceaa9883c53d19d60099f63602b5fac4dcc7b59 Mon Sep 17 00:00:00 2001 From: Dominique Orban Date: Sun, 23 Sep 2018 13:36:04 -0400 Subject: [PATCH] use Pkg in CI scripts --- .travis.yml | 2 +- appveyor.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d453483..95b779a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,4 +22,4 @@ notifications: script: - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi - - julia -e 'Pkg.clone(pwd()); Pkg.build("BenchmarkProfiles"); Pkg.test("BenchmarkProfiles"; coverage=true)' + - julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("BenchmarkProfiles"); Pkg.test("BenchmarkProfiles"; coverage=true)' diff --git a/appveyor.yml b/appveyor.yml index 275e1df..535e01d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -37,8 +37,8 @@ install: build_script: # Need to convert from shallow to complete for Pkg.clone to work - IF EXIST .git\shallow (git fetch --unshallow) - - C:\projects\julia\bin\julia -e "versioninfo(); - Pkg.clone(pwd(), \"BenchmarkProfiles\"); Pkg.build(\"BenchmarkProfiles\")" + - C:\projects\julia\bin\julia -e "using InteractiveUtils; versioninfo(); + using Pkg; Pkg.clone(pwd(), \"BenchmarkProfiles\"); Pkg.build(\"BenchmarkProfiles\")" test_script: - - C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"BenchmarkProfiles\")" + - C:\projects\julia\bin\julia --check-bounds=yes -e "using Pkg; Pkg.test(\"BenchmarkProfiles\")"