Skip to content

Commit

Permalink
Try deployment with docs/Project.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
alanderos91 committed Nov 30, 2019
1 parent 6ca3a40 commit 274bb5f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
27 changes: 7 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
language: julia
codecov: true
coveralls: true

# for building petri nets in docs
# sudo: required

dist: trusty
sudo: false

julia:
- 1.0
Expand All @@ -25,24 +24,12 @@ notifications:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'Pkg.clone(pwd()); Pkg.build("Example"); Pkg.test("Example"; coverage=true)';

after_success:
- julia -e 'if VERSION >= v"0.7.0-" using Pkg end; cd(Pkg.dir("BioSimulator")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
- julia -e 'if VERSION >= v"0.7.0-" using Pkg end; cd(Pkg.dir("BioSimulator")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())';

jobs:
include:
- stage: "Documentation"
julia: 1.0
julia: 1.2
os: linux
script:
# - sudo apt-get -qq update
# - sudo apt-get install -y pdf2svg
# - sudo apt-get install -y texlive-latex-base
# - sudo apt-get install -y texlive-binaries
# - sudo apt-get install -y texlive-pictures
# - sudo apt-get install -y texlive-latex-extra
# - julia -e 'using Pkg; Pkg.add("Documenter"); Pkg.add("TikzPictures"); Pkg.add("Plots")'
- julia -e 'using Pkg; Pkg.add("Documenter")'
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate();
Pkg.develop(PackageSpec(path=pwd()))'
- julia --project=docs/ docs/make.jl
- julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.add(PackageSpec(path=pwd()))'
- julia --project=docs --color=yes docs/make.jl
after_success: skip
4 changes: 4 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
4 changes: 2 additions & 2 deletions docs/src/man/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Both `SamplePath` and `Ensemble` implement the [IterableTables.jl](https://githu
This means that they act as *data sources* that can be converted into any supported *data sink*.
For example, you can convert an `Ensemble` into a `DataFrame`:

```
```@example neg_autoreg
using DataFrames
DataFrame(ensemble)
Expand All @@ -69,7 +69,7 @@ DataFrame(ensemble)
Each component of the state vector appears as a column, along with trajectory `trial` and timestamp `t` columns.
If the conversion does not produce the expected result, one may be able to force the correct behavior using the `tablefy` function:

```
```@example neg_autoreg
import BioSimulator: tablefy
DataFrame(tablefy(sample_path)) # DataFrame(sample_path) is currently incorrect
Expand Down

0 comments on commit 274bb5f

Please sign in to comment.