diff --git a/.appveyor.yml b/.appveyor.yml index e76894d..ce3359c 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,10 +1,9 @@ # Documentation: https://github.com/JuliaCI/Appveyor.jl environment: matrix: - - julia_version: 1.0 - - julia_version: 1.1 - - julia_version: 1.2 - - julia_version: nightly + - julia_version: 1.0 + - julia_version: 1.3 + - julia_version: nightly platform: - x86 - x64 @@ -14,7 +13,6 @@ matrix: branches: only: - master - - develop - /release-.*/ notifications: - provider: Email diff --git a/.cirrus.yml b/.cirrus.yml index 1fd6d28..9090e1d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -4,6 +4,8 @@ task: name: FreeBSD env: JULIA_VERSION: 1.0 + JULIA_VERSION: 1.3 + JULIA_VERSION: nightly install_script: - sh -c "$(fetch https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh -o -)" build_script: diff --git a/.drone.star b/.drone.star new file mode 100644 index 0000000..2d15920 --- /dev/null +++ b/.drone.star @@ -0,0 +1,27 @@ +def main(ctx): + pipelines = [] + for arch in ["amd64"]: + for julia in ["1.0", "1.3"]: + pipelines.append(pipeline(arch, julia)) + return pipelines + +def pipeline(arch, julia): + return { + "kind": "pipeline", + "type": "docker", + "name": "Julia %s - %s" % (julia, arch), + "platform": { + "os": "linux", + "arch": arch, + }, + "steps": [ + { + "name": "test", + "image": "julia:%s" % julia, + "commands": [ + "julia -e 'using InteractiveUtils; versioninfo()'", + "julia --project=@. -e 'using Pkg; Pkg.instantiate(); Pkg.build(); Pkg.test();'", + ], + }, + ], + } diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index 0243c70..e78623d 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -1,26 +1,17 @@ name: CompatHelper - on: schedule: - - cron: '00 * * * *' - issues: - types: [opened, reopened] - + - cron: 0 * * * * jobs: build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - julia-version: [1.2.0] - julia-arch: [x86] - os: [ubuntu-latest] + runs-on: ubuntu-latest steps: - uses: julia-actions/setup-julia@latest with: - version: ${{ matrix.julia-version }} + version: 1.2 - name: Pkg.add("CompatHelper") run: julia -e 'using Pkg; Pkg.add("CompatHelper")' - name: CompatHelper.main() + run: julia -e 'using CompatHelper; CompatHelper.main()' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml new file mode 100644 index 0000000..d77d3a0 --- /dev/null +++ b/.github/workflows/TagBot.yml @@ -0,0 +1,11 @@ +name: TagBot +on: + schedule: + - cron: 0 * * * * +jobs: + TagBot: + runs-on: ubuntu-latest + steps: + - uses: JuliaRegistries/TagBot@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..08590bd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,53 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + version: + - '1.0' + - '1.3' + - 'nightly' + os: + - ubuntu-latest + - macOS-latest + - windows-latest + arch: + - x64 + - x86 + exclude: + - os: macOS-latest + arch: x86 + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest + - uses: julia-actions/julia-uploadcodecov@latest + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - uses: julia-actions/julia-uploadcoveralls@latest + env: + COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} + docs: + name: Documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: '1.0' + - run: julia --project=docs -e ' + using Pkg; + Pkg.develop(PackageSpec(; path=pwd())); + Pkg.instantiate();' + - run: julia --project=docs docs/make.jl + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml index 854276f..3757a31 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,30 +1,29 @@ -# Documentation: http://docs.travis-ci.com/user/languages/julia/ +# Documentation: http://docs.travis-ci.com/user/languages/julia language: julia -os: - - linux - - osx +notifications: + email: false julia: - 1.0 + - 1.3 - nightly -matrix: +os: + - linux + - osx + - windows +arch: + - x64 +jobs: + fast_finish: true allow_failures: - julia: nightly - fast_finish: true -notifications: - email: false - slack: - secure: JRa0E2phGZCDGCoN3FF5EbtjNKrxq3dnsERjsOQmUtw1xZBOtcNunPhbUu0nFDciVPB4AIrCh061pxaoZLzsw8QhdPfsY6M/Tph4VU9NsOWJjSWTnHeY7JzpDw+Z3z/HaqdvxfY5S0AX+Sr/LnVIUsjTT1+vL5+kye93qRGXDAkkI/790Z84NmxNLleagBOhWDavCGi0XcddSdEqcDDZBJdxafbkPi6FH0AdXeNqy4s8/F803vyi7m/xrXYg87Abqm/cVeiZPhtAXOAvmPR36IZHfYOCzs3Xxl4nDfqi5M3MwBSQjW4n76rDD43kKahPBO0j41lWSfuo8Ea9CJqJuBb3nbid01JOGUeAR42/0lyqBwcWJKwGZEEeVGWWTy/bIDe4eyjpT3n51mcAUEDFtJZIo9gcw3ihFkoLcLIXWmoGi+3hrONmX6JY6Z8OauWMFB95/8sOxXWrC+jEG2Au2OVDrGfMo5kU205M+OF5mFGj/m/3I/gfbp4IQf4zzDjV921uCbw0NaaOdPOt5bIuvtDk1MVNPWQBzl/9rAdF0FhpwdW4io5akp1Qzes9PP8XiUMXkTx2E1ZRpo7DxpFTzeGuBTH/PEjca34xNwJXG4Sc5VHzn452r/o4PaCQVwqQ2QI7ezzF+Pg1qkwnxxM0TO+yZXZJlggP1UAQsKJlzqU= after_success: - - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())' - - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())' -jobs: - include: - - stage: Documentation - julia: 1.0 - script: julia --project=docs -e ' - using Pkg; - Pkg.develop(PackageSpec(path=pwd())); - Pkg.add(PackageSpec(url="https://github.com/PainterQubits/Unitful.jl")); - Pkg.instantiate(); - include("docs/make.jl");' - after_success: skip + - julia -e ' + using Pkg; + Pkg.add("Coverage"); + using Coverage; + Codecov.submit(process_folder());' + - julia -e ' + using Pkg; + Pkg.add("Coverage"); + using Coverage; + Coveralls.submit(process_folder());' diff --git a/README.md b/README.md index ad94862..491cd30 100644 --- a/README.md +++ b/README.md @@ -2,19 +2,17 @@
---- - # EquationsOfState.jl -[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://MineralsCloud.github.io/EquationsOfState.jl/stable) -[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://MineralsCloud.github.io/EquationsOfState.jl/dev) +[![Build Status](https://github.com/MineralsCloud/EquationsOfState.jl/workflows/CI/badge.svg)](https://github.com/MineralsCloud/EquationsOfState.jl/actions) [![Build Status](https://travis-ci.com/MineralsCloud/EquationsOfState.jl.svg?branch=master)](https://travis-ci.com/MineralsCloud/EquationsOfState.jl) -[![Build Status](https://ci.appveyor.com/api/projects/status/github/MineralsCloud/EquationsOfState.jl?svg=true)](https://ci.appveyor.com/project/singularitti/EquationsOfState-jl) -[![Codecov](https://codecov.io/gh/MineralsCloud/EquationsOfState.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/MineralsCloud/EquationsOfState.jl) -[![Coveralls](https://coveralls.io/repos/github/MineralsCloud/EquationsOfState.jl/badge.svg?branch=master)](https://coveralls.io/github/MineralsCloud/EquationsOfState.jl?branch=master) +[![Build Status](https://ci.appveyor.com/api/projects/status/github/singularitti/EquationsOfState.jl?svg=true)](https://ci.appveyor.com/project/singularitti/EquationsOfState-jl) +[![Build Status](https://cloud.drone.io/api/badges/MineralsCloud/EquationsOfState.jl/status.svg)](https://cloud.drone.io/MineralsCloud/EquationsOfState.jl) [![Build Status](https://api.cirrus-ci.com/github/MineralsCloud/EquationsOfState.jl.svg)](https://cirrus-ci.com/github/MineralsCloud/EquationsOfState.jl) -[![GitHub license](https://img.shields.io/github/license/MineralsCloud/EquationsOfState.jl)](https://github.com/MineralsCloud/EquationsOfState.jl/blob/master/LICENSE) -![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/MineralsCloud/EquationsOfState.jl?include_prereleases) +[![Coverage](https://codecov.io/gh/MineralsCloud/EquationsOfState.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/MineralsCloud/EquationsOfState.jl) +[![Coverage](https://coveralls.io/repos/github/MineralsCloud/EquationsOfState.jl/badge.svg?branch=master)](https://coveralls.io/github/MineralsCloud/EquationsOfState.jl?branch=master) +[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://MineralsCloud.github.io/EquationsOfState.jl/stable) +[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://MineralsCloud.github.io/EquationsOfState.jl/dev) [![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle) This package implements some _equations of state_ (EOS) of solids which are diff --git a/docs/make.jl b/docs/make.jl index efa5f19..17b9ba7 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,9 +1,17 @@ -using Documenter, EquationsOfState +using EquationsOfState +using Documenter DocMeta.setdocmeta!(EquationsOfState, :DocTestSetup, :(using EquationsOfState, EquationOfState.Collections, Unitful); recursive=true) makedocs(; modules=[EquationsOfState], - format=Documenter.HTML(), + authors="Qi Zhang ", + repo="https://github.com/MineralsCloud/EquationsOfState.jl/blob/{commit}{path}#L{line}", + sitename="EquationsOfState.jl", + format=Documenter.HTML(; + prettyurls=get(ENV, "CI", "false") == "true", + canonical="https://MineralsCloud.github.io/EquationsOfState.jl", + assets=String[], + ), pages=[ "Home" => "index.md", "Installation" => "Installation.md", @@ -16,12 +24,8 @@ makedocs(; ], "FAQ" => "FAQ.md", ], - repo="https://github.com/MineralsCloud/EquationsOfState.jl/blob/{commit}{path}#L{line}", - sitename="EquationsOfState.jl", - authors="Qi Zhang ", - assets=String[], ) deploydocs(; - repo="github.com/MineralsCloud/EquationsOfState.jl.git" + repo="github.com/MineralsCloud/EquationsOfState.jl", ) diff --git a/docs/src/index.md b/docs/src/index.md index ebbb281..a73d5fb 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -1,4 +1,8 @@ -# EquationsOfState.jl +```@meta +CurrentModule = EquationsOfState +``` + +# EquationsOfState !!! note @@ -39,3 +43,7 @@ Depth = 3 ```@index ``` + +```@autodocs +Modules = [EquationsOfState] +```