Skip to content

Commit

Permalink
Fix travis + project.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanergun committed Aug 20, 2019
1 parent b37b590 commit 8bbd4cf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
38 changes: 25 additions & 13 deletions .travis.yml
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"))'
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "PowerModelsACDC"
uuid = "ff45984e-d068-5f4c-9e32-c4133509d236"
autors = "Hakan Ergun"
autors = ["Hakan Ergun", "Frederik Geth"]
repo = "https://github.com/hakanergun/PowerModelsACDC.jl"
version = "0.1.0"

Expand Down
2 changes: 1 addition & 1 deletion gen_pr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ for arg in ARGS
project = Dict(
"name" => name,
"uuid" => uuid(name),
"autors" => "Hakan Ergun",
"autors" => ["Hakan Ergun", "Frederik Geth"],
"repo" => "https://github.com/hakanergun/PowerModelsACDC.jl",
"version" => "0.1.0",
"deps" => Dict{String,String}(),
Expand Down

0 comments on commit 8bbd4cf

Please sign in to comment.