Skip to content

Commit

Permalink
Update travis file (#338)
Browse files Browse the repository at this point in the history
* codecov

* Pkg.clone -> Pkg.add

* PackageSpec url

* will work now

* another test

* syntax

* fix
  • Loading branch information
guimarqu authored May 11, 2020
1 parent d71265d commit 680d441
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ os:
# - osx

julia:
- 1.2
- 1.3
- 1.4

notifications:
email: false
Expand All @@ -26,21 +26,19 @@ notifications:
#before_script: # homebrew for mac
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi


script: # the default script is equivalent to the following
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --project=test/ -e 'using Pkg; Pkg.clone("https://github.com/atoptima/ColunaDemos.jl.git"); Pkg.clone(pwd()); Pkg.build("Coluna"); Pkg.test("Coluna"; coverage=true)';
- julia --project=test/ -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/atoptima/ColunaDemos.jl.git")); Pkg.add(PackageSpec(path=pwd())); Pkg.build("Coluna"); Pkg.test("Coluna", coverage=true);'

after_success:
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia --project=test -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder());'

jobs:
include:
- stage: "Documentation"
julia: 1.3
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.clone("https://github.com/atoptima/BlockDecomposition.jl.git"); Pkg.clone("https://github.com/atoptima/ColunaDemos.jl.git"); Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- julia --project=docs/ -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/atoptima/BlockDecomposition.jl.git")); Pkg.add(PackageSpec(url="https://github.com/atoptima/ColunaDemos.jl.git")); Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate();'
- julia --project=docs/ docs/make.jl
after_success: skip

0 comments on commit 680d441

Please sign in to comment.