Skip to content

Commit 504c338

Browse files
committed
Add Project.toml and other fixes
1 parent 165d3e0 commit 504c338

File tree

9 files changed

+66
-20
lines changed

9 files changed

+66
-20
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CompatHelper
2+
3+
on:
4+
schedule:
5+
- cron: '00 23 * * *'
6+
7+
jobs:
8+
CompatHelper:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: julia-actions/setup-julia@latest
12+
with:
13+
version: 1.3
14+
- name: Pkg.add("CompatHelper")
15+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
16+
- name: CompatHelper.main()
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/TagBot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: TagBot
22
on:
33
schedule:
4-
- cron: 0 * * * *
4+
- cron: 20 02 * * *
55
jobs:
66
TagBot:
77
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ _build
99
/docs/build/
1010
/docs/site/
1111
/deps/NP.xy
12+
/Manifest.toml

.travis.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,28 @@ os:
44
- linux
55
- osx
66
julia:
7-
- 0.7
87
- 1.0
8+
- 1.3
9+
- 1.4
910
- nightly
1011
matrix:
11-
allow_failures:
12-
- julia: nightly
1312
git:
1413
depth: 999999
1514
notifications:
1615
email: false
17-
# script:
18-
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
19-
# - julia -e 'import Pkg; Pkg.add(Pkg.PackageSpec(path=pwd())); Pkg.build("AstroLib"); Pkg.test("AstroLib"; coverage=true)'
16+
2017
after_success:
21-
- julia -e 'import Pkg; ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps)'
22-
- julia -e 'import Pkg; cd(Pkg.dir("AstroLib")); include(joinpath("docs", "make.jl"))'
23-
- julia -e 'import Pkg; cd(Pkg.dir("AstroLib")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
18+
- julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
19+
20+
jobs:
21+
allow_failures:
22+
- julia: nightly
23+
include:
24+
- stage: "Documentation"
25+
julia: 1.3
26+
os: linux
27+
script:
28+
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
29+
Pkg.instantiate()'
30+
- julia --project=docs/ docs/make.jl
31+
after_success: skip

Project.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name = "AstroLib"
2+
uuid = "c7932e45-9af1-51e7-9da9-f004cd3a462b"
3+
authors = ["Mosè Giordano"]
4+
version = "1.0.0"
5+
6+
[deps]
7+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
8+
9+
[compat]
10+
StaticArrays = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12"
11+
julia = "1"
12+
13+
[extras]
14+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
15+
16+
[targets]
17+
test = ["Test"]

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,16 @@ to see how you can help. Volunteers are welcome!
2929
Installation
3030
------------
3131

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

3737
```julia
38-
julia> Pkg.update()
39-
julia> Pkg.add("AstroLib")
38+
pkg> add AstroLib
4039
```
4140

42-
Older versions are also available for Julia 0.4-0.6.
41+
Older versions of this package are also available for Julia 0.4-0.7.
4342

4443
Note that, in order to work, a few functions require external files, which are
4544
automatically downloaded when building the package. Should these files be

REQUIRE

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/Project.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
4+
[compat]
5+
Documenter = "~0.24"

docs/make.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ deploydocs(
1515
target = "build",
1616
deps = nothing,
1717
make = nothing,
18-
julia = "1.0",
1918
)

0 commit comments

Comments
 (0)