Skip to content

Commit b751019

Browse files
committed
Initial package layout
1 parent 68595e8 commit b751019

15 files changed

+225
-0
lines changed

.appveyor.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Documentation: https://github.com/JuliaCI/Appveyor.jl
2+
3+
environment:
4+
matrix:
5+
- julia_version: 1.0
6+
- julia_version: 1.3
7+
- julia_version: nightly
8+
9+
platform:
10+
- x64 # 64-bit
11+
12+
matrix:
13+
allow_failures:
14+
- julia_version: nightly
15+
16+
#branches:
17+
# only:
18+
# - master
19+
# - /release-.*/
20+
21+
notifications:
22+
- provider: Email
23+
on_build_success: false
24+
on_build_failure: false
25+
on_build_status_changed: false
26+
27+
install:
28+
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
29+
30+
build_script:
31+
- echo "%JL_BUILD_SCRIPT%"
32+
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
33+
34+
test_script:
35+
- echo "%JL_TEST_SCRIPT%"
36+
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# comment: false

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
*.jl.cov
3+
*.jl.*.cov
4+
*.jl.mem
5+
.ipynb_checkpoints
6+
Manifest.toml

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## Documentation: http://docs.travis-ci.com/user/languages/julia/
2+
3+
language: julia
4+
5+
os:
6+
- linux
7+
- osx
8+
9+
julia:
10+
- 1.0
11+
- 1.3
12+
- nightly
13+
14+
arch:
15+
- amd64
16+
- x86
17+
18+
notifications:
19+
email: false
20+
21+
after_success:
22+
# push coverage results to Codecov
23+
- julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
24+
# push coverage results to Coveralls
25+
- julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
26+
27+
jobs:
28+
allow_failures:
29+
- julia: nightly
30+
fast_finish: true
31+
exclude:
32+
- os: osx
33+
arch: x86
34+
include:
35+
- stage: "Documentation"
36+
julia: 1.0
37+
os: linux
38+
arch: amd64
39+
script:
40+
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
41+
- julia --project=docs/ docs/make.jl
42+
after_success: skip

LICENSE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
The EmpiricalDistributions.jl package is licensed under the MIT "Expat" License:
2+
3+
> Copyright (c) 2018:
4+
>
5+
> Oliver Schulz <oschulz@mpp.mpg.de>
6+
>
7+
> Permission is hereby granted, free of charge, to any person obtaining a copy
8+
> of this software and associated documentation files (the "Software"), to deal
9+
> in the Software without restriction, including without limitation the rights
10+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
> copies of the Software, and to permit persons to whom the Software is
12+
> furnished to do so, subject to the following conditions:
13+
>
14+
> The above copyright notice and this permission notice shall be included in all
15+
> copies or substantial portions of the Software.
16+
>
17+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
> SOFTWARE.
24+
>

Project.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name = "EmpiricalDistributions"
2+
uuid = "0bbb1fad-0f24-45fe-94a4-415852c5cc3b"
3+
version = "0.1.0"
4+
5+
[deps]
6+
7+
[compat]
8+
julia = "1"
9+
10+
[extras]
11+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
12+
13+
[targets]
14+
test = ["Test"]

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# EmpiricalDistributions.jl
2+
3+
[![Documentation for stable version](https://img.shields.io/badge/docs-stable-blue.svg)](https://oschulz.github.io/EmpiricalDistributions.jl/stable)
4+
[![Documentation for development version](https://img.shields.io/badge/docs-dev-blue.svg)](https://oschulz.github.io/EmpiricalDistributions.jl/dev)
5+
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md)
6+
[![Travis Build Status](https://travis-ci.com/oschulz/EmpiricalDistributions.jl.svg?branch=master)](https://travis-ci.com/oschulz/EmpiricalDistributions.jl)
7+
[![Appveyor Build Status](https://ci.appveyor.com/api/projects/status/github/oschulz/EmpiricalDistributions.jl?branch=master&svg=true)](https://ci.appveyor.com/project/oschulz/EmpiricalDistributions-jl)
8+
[![Codecov](https://codecov.io/gh/oschulz/EmpiricalDistributions.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/oschulz/EmpiricalDistributions.jl)
9+
10+
11+
## Documentation
12+
13+
* [Documentation for stable version](https://oschulz.github.io/EmpiricalDistributions.jl/stable)
14+
* [Documentation for development version](https://oschulz.github.io/EmpiricalDistributions.jl/dev)

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
site/

docs/Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
4+
5+
[compat]
6+
Documenter = "~0.24"

docs/make.jl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Use
2+
#
3+
# DOCUMENTER_DEBUG=true julia --color=yes make.jl local [nonstrict] [fixdoctests]
4+
#
5+
# for local builds.
6+
7+
using Documenter
8+
using EmpiricalDistributions
9+
10+
makedocs(
11+
sitename = "EmpiricalDistributions",
12+
modules = [EmpiricalDistributions],
13+
format = Documenter.HTML(
14+
prettyurls = !("local" in ARGS),
15+
canonical = "https://oschulz.github.io/EmpiricalDistributions.jl/stable/"
16+
),
17+
pages=[
18+
"Home" => "index.md",
19+
"API" => "api.md",
20+
"LICENSE" => "LICENSE.md",
21+
],
22+
doctest = ("fixdoctests" in ARGS) ? :fix : true,
23+
linkcheck = ("linkcheck" in ARGS),
24+
strict = !("nonstrict" in ARGS),
25+
)
26+
27+
deploydocs(
28+
repo = "github.com/oschulz/EmpiricalDistributions.jl.git",
29+
forcepush = true
30+
)

0 commit comments

Comments
 (0)