Skip to content

Commit

Permalink
Trying to automate compiling with travis
Browse files Browse the repository at this point in the history
  • Loading branch information
alegrand committed May 5, 2019
1 parent e8f5d99 commit 5f5580e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
@@ -0,0 +1,19 @@
language: r
pandoc_version: 1.19.2.1

sudo: false

cache:
packages: yes
directories:

env:
global:
secure: HYODYvtZN5sUBdInIXluT6nY1ouchkpkTC9sLceYmCxzOltziJRoixKmKHrYbO+cl12KclvupEkaiZvTaGe3j6L0YAXDPOiqMSJJvETsFdEx+KlM3o1+DZu5uVagXOx+uCNe+67j5BD74Apj3LpKLJNSL4xIRHPW39Kzzmqd1uGLKpK5xFox7X6pseojyi7MKQGqRvk3F+Gdxuolf+RFYcu3xyYSUor7O1X7fli6RA5YmyuWHSecPG8Ch0k0rTk716ixr/fLqpET1JQHNxdOvCsjkcXMNiQGeoargo+96mQRHPkQjxOEMzaXI4dxC1df8Fc9ak2YhhpPcCYtI9aAbPa1ZJJ82a4FXr8PX0xieTaAIhKrLfrzXmRZAoslu5m2JFGkM9ox859QLWVSroj7lqNpwrJDLIsXqfYMaSv2QNCTJXPccu6GztZ0+6qnIcsbskF/PD9lVmaCGxXS99JIUUD1kVM9p/8R1T7D1UuSHLQZ3lh/vJC7XPFZTbyJtOYu0dwOj7hT5rF50zJv1t11gVZxX+/d6RSX0EpYTwN8C4698ZjKUgf6jifVwyC1K6yZ1KxXYbFtmn1EGvojFYgGY3BpU05hJOBcdIkcyN3sOVYg71xB44MQBmInMLB4flusVvtjMmzIacbel5t/T7QwqdGKrEN6oJ1hs0avOJl5ohI=

before_script:
- chmod +x ./ghpages_script.sh

script:
- ./ghpages_script.sh

6 changes: 6 additions & 0 deletions DESCRIPTION
@@ -0,0 +1,6 @@
Package: placeholder
Type: Book
Title: Does not matter.
Version: 0.0.1
Imports: bookdown, ggplot2
Remotes: rstudio/bookdown
16 changes: 16 additions & 0 deletions ghpages_script.sh
@@ -0,0 +1,16 @@
# # configure your name and email if you have not done so
# git config --global user.email "you@example.com"
# git config --global user.name "Your Name"

# # clone the repository to the book-output directory
# git clone -b gh-pages \
# https://alegrand@github.com/alegrand/bookrr.git \
# book-output
make all
cd book-output
git rm -rf *
cp -r ../html/* ./
cp -r ../booksprintrr.pdf ../booksprintrr.epub ./
git add --all *
git commit -m"Update the book"
git push -q origin gh-pages

0 comments on commit 5f5580e

Please sign in to comment.