Skip to content

Commit

Permalink
Merge pull request #6 from kbarbary/master
Browse files Browse the repository at this point in the history
fix Julia v0.5 deprecations and enable CI
  • Loading branch information
kbarbary committed Aug 9, 2016
2 parents f882521 + e8c6c9b commit 4ea8c30
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
@@ -0,0 +1,14 @@
language: julia
os:
- linux
julia:
- 0.4
- 0.5
- nightly
notifications:
email: false
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd()); Pkg.build("Cosmology"); Pkg.test("Cosmology"; coverage=true)';
after_success:
- julia -e 'cd(Pkg.dir("Cosmology")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
4 changes: 4 additions & 0 deletions README.md
@@ -1,6 +1,10 @@
Cosmology calculator for Julia
==============================

[![Build Status](https://img.shields.io/travis/JuliaAstro/Cosmology.jl.svg?style=flat-square&label=build)](https://travis-ci.org/JuliaAstro/Cosmology.jl)
[![Coverage Status](http://img.shields.io/coveralls/JuliaAstro/Cosmology.jl.svg?style=flat-square)](https://coveralls.io/r/JuliaAstro/Cosmology.jl?branch=master)


Installation
------------

Expand Down
1 change: 1 addition & 0 deletions REQUIRE
@@ -1 +1,2 @@
julia 0.4
Compat 0.8.6
6 changes: 4 additions & 2 deletions src/Cosmology.jl
@@ -1,5 +1,7 @@
module Cosmology

using Compat

export cosmology,
age_gyr,
angular_diameter_dist_mpc,
Expand Down Expand Up @@ -61,9 +63,9 @@ function a2E(c::Union{ClosedLCDM,OpenLCDM}, a::Float64)
end

for c in ("Flat", "Open", "Closed")
name = symbol("$(c)WCDM")
name = Symbol("$(c)WCDM")
@eval begin
immutable $(name){T<:Real} <: $(symbol("Abstract$(c)Cosmology"))
immutable $(name){T<:Real} <: $(Symbol("Abstract$(c)Cosmology"))
h::T
Ω_k::T
Ω_Λ::T
Expand Down

0 comments on commit 4ea8c30

Please sign in to comment.