Skip to content

Commit

Permalink
feat(ci): export documentation in js file
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck DIOMANDE committed Jul 28, 2019
1 parent d70b9d1 commit bebfec4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ matrix:
skip_cleanup: true
script:
ssh lewebpedagogique@51.15.187.88 mkdir -p /srv/http/skyflow/doc &&
rsync -r --delete-after $TRAVIS_BUILD_DIR/doc/commands.js lewebpedagogique@51.15.187.88:/srv/http/skyflow/doc/commands.js &&
rsync -r --delete-after $TRAVIS_BUILD_DIR/doc/commands.json lewebpedagogique@51.15.187.88:/srv/http/skyflow/doc/commands.json &&
ssh lewebpedagogique@51.15.187.88 docker restart skyflow_master &&
ssh lewebpedagogique@51.15.187.88 docker restart skyflow_develop &&
Expand Down
2 changes: 2 additions & 0 deletions ci/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
$result = json_decode($file->getContents(), true);
}

$fileSystem->remove(['/app/doc/commands.js']);
$fileSystem->remove(['/app/doc/commands.json']);
$fileSystem->dumpFile('/app/doc/commands.js', 'var COMMANDS_DOC = ' . json_encode($result) . ';');
$fileSystem->dumpFile('/app/doc/commands.json', json_encode($result));

0 comments on commit bebfec4

Please sign in to comment.