-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b37b590
commit 8bbd4cf
Showing
3 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,36 @@ | ||
language: julia | ||
os: | ||
- linux | ||
- osx | ||
julia: | ||
- 1.1 | ||
- nightly | ||
matrix: | ||
allow_failures: | ||
- julia: nightly | ||
cache: | ||
directories: | ||
- /home/travis/.julia | ||
sudo: false | ||
addons: | ||
apt_packages: | ||
- gfortran | ||
- liblapack-dev | ||
- libgmp-dev | ||
- libglpk-dev | ||
|
||
before_install: | ||
# don't keep an old version of the code in the cache | ||
# - julia -e 'using Pkg; if "PowerModels" in keys(Pkg.installed()) Pkg.rm("PowerModels"); Pkg.rm("PowerModels"); Pkg.add("https://github.com/lanl-ansi/PowerModels.jl.git") end' | ||
# - julia -e 'using Pkg; if "PowerModelsACDC" in keys(Pkg.installed()) Pkg.rm("PowerModelsACDC"); Pkg.rm("PowerModelsACDC") end' | ||
# - julia -e 'using Pkg; Pkg.update()' #make sure we get the latest version of METADATA | ||
- julia -e 'using Pkg; Pkg.add("Ipopt")' | ||
- julia -e 'using Pkg; Pkg.add("SCS")' | ||
- julia -e 'using Pkg; if !("Documenter" in keys(Pkg.installed())) Pkg.add("Documenter") end' | ||
|
||
script: | ||
- julia --project -e 'import Pkg; Pkg.build(); Pkg.instantiate()' | ||
- julia --project -e 'import Pkg; Pkg.test(coverage=true);' | ||
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi | ||
# - julia -e 'using Pkg; Pkg.clone(pwd())' | ||
- julia -e 'using Pkg; Pkg.test("PowerModelsACDC")' | ||
|
||
after_success: | ||
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())' | ||
jobs: | ||
include: | ||
- stage: "Documentation" | ||
julia: 1.1 | ||
os: linux | ||
script: | ||
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))' | ||
- julia --project=docs/ docs/make.jl | ||
after_success: skip | ||
- julia -e 'using Pkg; cd(Pkg.dir("PowerModelsACDC")); include(joinpath("docs", "make.jl"))' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters