Skip to content

Commit

Permalink
Add Project.toml and other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Feb 26, 2020
1 parent 165d3e0 commit b282525
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 20 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CompatHelper

on:
schedule:
- cron: '00 23 * * *'

jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
with:
version: 1.3
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
2 changes: 1 addition & 1 deletion .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
- cron: 20 02 * * *
jobs:
TagBot:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ _build
/docs/build/
/docs/site/
/deps/NP.xy
/Manifest.toml
26 changes: 17 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,28 @@ os:
- linux
- osx
julia:
- 0.7
- 1.0
- 1.3
- 1.4
- nightly
matrix:
allow_failures:
- julia: nightly
git:
depth: 999999
notifications:
email: false
# script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'import Pkg; Pkg.add(Pkg.PackageSpec(path=pwd())); Pkg.build("AstroLib"); Pkg.test("AstroLib"; coverage=true)'

after_success:
- julia -e 'import Pkg; ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps)'
- julia -e 'import Pkg; cd(Pkg.dir("AstroLib")); include(joinpath("docs", "make.jl"))'
- julia -e 'import Pkg; cd(Pkg.dir("AstroLib")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
- julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'

jobs:
allow_failures:
- julia: nightly
include:
- stage: "Documentation"
julia: 1.3
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
after_success: skip
20 changes: 20 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name = "AstroLib"
uuid = "c7932e45-9af1-51e7-9da9-f004cd3a462b"
authors = ["Mosè Giordano"]
version = "1.0.0"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
StaticArrays = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12"
julia = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,16 @@ to see how you can help. Volunteers are welcome!
Installation
------------

`AstroLib.jl` is available for Julia 0.7 and later versions, and can be
installed with
[Julia built-in package manager](http://docs.julialang.org/en/stable/manual/packages/).
In a Julia session run the command
`AstroLib.jl` is available for Julia 1.0 and later versions, and can be
installed with [Julia built-in package
manager](https://julialang.github.io/Pkg.jl/stable/). In a Julia session, after
entering the package manager mode with `]`, run the command

```julia
julia> Pkg.update()
julia> Pkg.add("AstroLib")
pkg> add AstroLib
```

Older versions are also available for Julia 0.4-0.6.
Older versions of this package are also available for Julia 0.4-0.7.

Note that, in order to work, a few functions require external files, which are
automatically downloaded when building the package. Should these files be
Expand Down
2 changes: 0 additions & 2 deletions REQUIRE

This file was deleted.

5 changes: 5 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

[compat]
Documenter = "~0.24"
1 change: 0 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ deploydocs(
target = "build",
deps = nothing,
make = nothing,
julia = "1.0",
)

0 comments on commit b282525

Please sign in to comment.