Skip to content

Commit

Permalink
Set Turing up for Registrator (#753)
Browse files Browse the repository at this point in the history
* Added Project.toml

* Removed clone statements from .travis.yml.

* Removed add("Turing") calls.
  • Loading branch information
cpfiffer authored and yebai committed Apr 17, 2019
1 parent 65371ce commit 0dae388
Show file tree
Hide file tree
Showing 4 changed files with 622 additions and 31 deletions.
41 changes: 11 additions & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,15 @@ jobs:
env: STAGE=test
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;Pkg.update();
Pkg.clone(pwd(), "Turing");
Pkg.build("Turing");
- julia --check-bounds=yes -e 'using Pkg;
Pkg.test("Turing"; coverage=true)'
- stage: test
os: linux
julia: 1.1
env: STAGE=test
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;Pkg.update();
Pkg.clone(pwd(), "Turing");
Pkg.build("Turing");
- julia --check-bounds=yes -e 'using Pkg;
Pkg.test("Turing"; coverage=true)'
- stage: numerical
allow_failures: true
Expand All @@ -36,9 +32,7 @@ jobs:
env: STAGE=numerical
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;Pkg.update();
Pkg.clone(pwd(), "Turing");
Pkg.build("Turing");
- julia --check-bounds=yes -e 'using Pkg;
Pkg.test("Turing"; coverage=true)'
- stage: numerical
allow_failures: true
Expand All @@ -48,8 +42,7 @@ jobs:
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;Pkg.update();
Pkg.clone(pwd(), "Turing");
Pkg.build("Turing");
Pkg.add("Turing");
Pkg.test("Turing"; coverage=true)'
- stage: test
julia: 1.0
Expand All @@ -58,9 +51,7 @@ jobs:
env: STAGE=test
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;Pkg.update();
Pkg.clone(pwd(), "Turing");
Pkg.build("Turing");
- julia --check-bounds=yes -e 'using Pkg;
Pkg.test("Turing"; coverage=true)'
- stage: test
julia: 1.1
Expand All @@ -69,9 +60,7 @@ jobs:
env: STAGE=test
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;Pkg.update();
Pkg.clone(pwd(), "Turing");
Pkg.build("Turing");
- julia --check-bounds=yes -e 'using Pkg;
Pkg.test("Turing"; coverage=true)'
- stage: stan
allow_failures: true
Expand All @@ -80,9 +69,7 @@ jobs:
env: STAGE=stan
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;Pkg.update();
Pkg.clone(pwd(), "Turing");
Pkg.build("Turing");
- julia --check-bounds=yes -e 'using Pkg;
Pkg.test("Turing"; coverage=true)'
- stage: stan
allow_failures: true
Expand All @@ -91,9 +78,7 @@ jobs:
env: STAGE=stan
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;Pkg.update();
Pkg.clone(pwd(), "Turing");
Pkg.build("Turing");
- julia --check-bounds=yes -e 'using Pkg;
Pkg.test("Turing"; coverage=true)'
- stage: dynamichmc
allow_failures: true
Expand All @@ -102,9 +87,7 @@ jobs:
env: STAGE=dynamichmc
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;Pkg.update();
Pkg.clone(pwd(), "Turing");
Pkg.build("Turing");
- julia --check-bounds=yes -e 'using Pkg;
Pkg.test("Turing"; coverage=true)'
- stage: dynamichmc
allow_failures: true
Expand All @@ -113,17 +96,15 @@ jobs:
env: STAGE=dynamichmc
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'using Pkg;Pkg.update();
Pkg.clone(pwd(), "Turing");
Pkg.build("Turing");
- julia --check-bounds=yes -e 'using Pkg;
Pkg.test("Turing"; coverage=true)'
- stage: documentation
julia: 1.1
os: linux
if: branch = master
env: STAGE=documentation
script:
- julia -e 'using Pkg; Pkg.update(); Pkg.clone(pwd(), "Turing"); Pkg.build("Turing");'
- julia -e 'using Pkg; Pkg.update();'
- julia -e 'using Pkg; Pkg.add("Documenter"), Pkg.add("DocumenterMarkdown"), Pkg.add("DynamicHMC")'
- julia -e 'using Pkg, Turing;
cd(joinpath(dirname(pathof(Turing)), ".."));
Expand Down
Loading

0 comments on commit 0dae388

Please sign in to comment.