-
Notifications
You must be signed in to change notification settings - Fork 3
/
wercker.yml
43 lines (43 loc) · 1.76 KB
/
wercker.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
# this config file instructs wercker to build the html documentation using a perl
# script and then to deploy the html file and a zip file with the entire package
# to my website
box: ubuntu
build:
steps:
- script:
name: create package
code: |
apt-get update && apt-get -yy install git zip
export TZ='US/Eastern'
remote="https://$GITHUB_TOKEN@github.com/$WERCKER_GIT_OWNER/very-simple-empirics-sandbox"
git clone $remote komments
cd komments
git checkout komments
cd ..
perl komments/kpp.pl documentation.m
zip very-simple.zip *.m *.html
deploy:
steps:
- script:
name: deploy
code: |
apt-get update && apt-get -yy install git
export TZ='US/Eastern'
remote="https://$GITHUB_TOKEN@github.com/$WERCKER_GIT_OWNER/jtilly.github.io.git"
git clone $remote
cd jtilly.github.io
git config user.email "jantilly@gmail.com"
git config user.name "jtilly"
mkdir -p very-simple-empirics-sandbox
cd very-simple-empirics-sandbox
cp -f ../../documentation.m.html .
cp -f ../../very-simple.zip .
git add documentation.m.html very-simple.zip
cd ..
mkdir -p very-simple-markov-perfect
cd very-simple-markov-perfect
cp -f ../../documentation.m.html .
cp -f ../../very-simple.zip .
git add documentation.m.html very-simple.zip
git commit -m "Update from Wercker"
git push origin master