forked from Rdatatable/data.table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
30 lines (23 loc) · 751 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -o errexit -o nounset
PKG_REPO=$PWD
PKG_TARBALL=$(ls -1t *.tar.gz | head -n 1)
cd ..
addToDrat(){
mkdir drat; cd drat
## Set up Repo parameters
git init
git config user.name "addToDrat"
git config user.email "[email protected]"
## Get drat repo
git remote add upstream "https://[email protected]/Rdatatable/data.table.git" 2>err.txt
git fetch upstream gh-pages 2>err.txt
git checkout gh-pages 2>err.txt
git reset --hard "88000defd316538c37af4c8dc842e73e7953f4e2" 2>err.txt
Rscript -e "drat::insertPackage('$PKG_REPO/$PKG_TARBALL', \
repodir = '.', \
commit='Travis publish data.table: build $TRAVIS_COMMIT', \
fields='Commit')"
git push --force upstream gh-pages 2>err.txt
}
addToDrat