Skip to content

Commit 5b58f71

Browse files
initial files of a new package
0 parents  commit 5b58f71

File tree

9 files changed

+105
-0
lines changed

9 files changed

+105
-0
lines changed

.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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.jl.cov
2+
*.jl.*.cov
3+
*.jl.mem

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Documentation: http://docs.travis-ci.com/user/languages/julia/
2+
language: julia
3+
os:
4+
- linux
5+
# - osx
6+
julia:
7+
- 0.7
8+
- nightly
9+
matrix:
10+
allow_failures:
11+
- julia: nightly
12+
notifications:
13+
email: false
14+
15+
## uncomment the following lines to override the default test script
16+
#script:
17+
# - julia -e 'Pkg.clone(pwd()); Pkg.build("NbodySimulator"); Pkg.test("NbodySimulator"; coverage=true)'
18+
after_success:
19+
# push coverage results to Coveralls
20+
- julia -e 'cd(Pkg.dir("NbodySimulator")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
21+
# push coverage results to Codecov
22+
- julia -e 'cd(Pkg.dir("NbodySimulator")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

LICENSE.md

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

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# NbodySimulator
2+
3+
[![Build Status](https://travis-ci.org/JuliaDiffEq/NBodySimulator.jl.svg?branch=master)](https://travis-ci.org/JuliaDiffEq/NBodySimulator.jl)
4+
[![Build status](https://ci.appveyor.com/api/projects/status/1ofg9ianvcciq26v?svg=true)](https://ci.appveyor.com/project/Mikhail-Vaganov/nbodysimulator-jl)

REQUIRE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
julia 0.7-beta2

appveyor.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
environment:
2+
matrix:
3+
- JULIAVERSION: "julialang/bin/winnt/x86/0.7/julia-0.7-latest-win32.exe"
4+
- JULIAVERSION: "julialang/bin/winnt/x64/0.7/julia-0.7-latest-win64.exe"
5+
- JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
6+
- JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"
7+
8+
matrix:
9+
allow_failures:
10+
- JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
11+
- JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"
12+
13+
branches:
14+
only:
15+
- master
16+
- /release-.*/
17+
18+
notifications:
19+
- provider: Email
20+
on_build_success: false
21+
on_build_failure: false
22+
on_build_status_changed: false
23+
24+
install:
25+
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
26+
# If there's a newer build queued for the same PR, cancel this one
27+
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
28+
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
29+
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
30+
throw "There are newer queued builds for this pull request, failing early." }
31+
# Download most recent Julia Windows binary
32+
- ps: (new-object net.webclient).DownloadFile(
33+
$("http://s3.amazonaws.com/"+$env:JULIAVERSION),
34+
"C:\projects\julia-binary.exe")
35+
# Run installer silently, output to C:\projects\julia
36+
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
37+
38+
build_script:
39+
# Need to convert from shallow to complete for Pkg.clone to work
40+
- IF EXIST .git\shallow (git fetch --unshallow)
41+
- C:\projects\julia\bin\julia -e "versioninfo();
42+
Pkg.clone(pwd(), \"NbodySimulator\"); Pkg.build(\"NbodySimulator\")"
43+
44+
test_script:
45+
- C:\projects\julia\bin\julia -e "Pkg.test(\"NbodySimulator\")"

src/NbodySimulator.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module NbodySimulator
2+
3+
end # module

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
using NbodySimulator, Test
2+
3+
# write your own tests here
4+
@test sqrt(125) == 6

0 commit comments

Comments
 (0)