Skip to content

Commit

Permalink
Change project references and restore deploy.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawalonoski committed Feb 6, 2018
1 parent 76d7820 commit 433adf9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ script:
- ./gradlew check
after_success:
- bash <(curl -s https://codecov.io/bash)
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash deploy.sh
notifications:
slack: mitrecorp:HNikOgsZALD9WxBZh5oSJve9
webhooks:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Synthea<sup>TM</sup> Patient Generator [![Build Status](https://travis-ci.org/synthetichealth/synthea_java.svg?branch=master)](https://travis-ci.org/synthetichealth/synthea_java) [![codecov](https://codecov.io/gh/synthetichealth/synthea_java/branch/master/graph/badge.svg)](https://codecov.io/gh/synthetichealth/synthea_java)
# Synthea<sup>TM</sup> Patient Generator [![Build Status](https://travis-ci.org/synthetichealth/synthea.svg?branch=master)](https://travis-ci.org/synthetichealth/synthea) [![codecov](https://codecov.io/gh/synthetichealth/synthea/branch/master/graph/badge.svg)](https://codecov.io/gh/synthetichealth/synthea)

Synthea<sup>TM</sup> is a Synthetic Patient Population Simulator. The goal is to output synthetic, realistic (but not real), patient data and associated health records in a variety of formats.

Expand Down Expand Up @@ -27,8 +27,8 @@ Synthea<sup>TM</sup> requires Java 1.8 or above.

To clone the Synthea<sup>TM</sup> repo, then build and run the test suite:
```
git clone https://github.com/synthetichealth/synthea_java.git
cd synthea_java
git clone https://github.com/synthetichealth/synthea.git
cd synthea
./gradlew build check test
```

Expand Down
34 changes: 34 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

# --------------------------------------------------------------------------
# This script deploys rendered graphs of the Synthea modules to github pages
# --------------------------------------------------------------------------

set -o errexit -o nounset

if [ "$TRAVIS_BRANCH" != "master" ]
then
echo "Skipping publication of module graphs for non-master branches."
exit 0
fi

rev=$(git rev-parse --short HEAD)

./gradlew graphviz
cd output

git init
git config user.name "Jason Walonoski"
git config user.email "[email protected]"

git remote add upstream "https://$GH_TOKEN@github.com/synthetichealth/synthea.git"
git fetch upstream
git reset upstream/gh-pages

# echo "synthea.org" > CNAME

touch graphviz

git add -A graphviz/
git commit -m "rebuild graphs at ${rev}"
git push -q upstream HEAD:gh-pages
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ include 'api'
include 'services:webservice'
*/

rootProject.name = 'synthea_java'
rootProject.name = 'synthea'

0 comments on commit 433adf9

Please sign in to comment.