Skip to content

Commit 3591f47

Browse files
committed
Add build scripts
1 parent 9317cf6 commit 3591f47

5 files changed

+40
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_temp/

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: ruby
2+
cache: bundler
3+
rvm:
4+
- 2.2
5+
sudo: false
6+
addons:
7+
apt:
8+
packages:
9+
- git
10+
- build-essential
11+
- texlive-full
12+
script: make -s install
13+
env:
14+
global:
15+
secure: hB7ob3qS0zTkCklMiHMi6VcNi97ijCdV2fPxgyTx6MLCKhLrrKmEwtT8b+gNkThD1kVuu97adCBYjr5tVgNkl9SExeWQG4LMizrihK6WnHAAkfJipxVJzNeuIOcdBcTPhNjSQ67NdCVjneOXQ6vbwljHG1GHPCtTTH6hxk60QDQ=

Makefile

+24
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,27 @@ epub:
1111

1212
latex:
1313
pandoc README.md -o damianzaremba.tex
14+
15+
push:
16+
# SSH wrapper
17+
if [ ! -d _temp ]; then \
18+
mkdir -p _temp; \
19+
fi
20+
21+
if [ ! -f _temp/ssh ]; then \
22+
echo 'exec ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $$*' > _temp/ssh; \
23+
chmod 755 _temp/ssh; \
24+
fi
25+
26+
if [ "`git ls-files --modified --deleted | wc -l`" != "0" ] && [ "master" = "$(TRAVIS_BRANCH)" ]; \
27+
then \
28+
git add --all . && \
29+
git commit -am "Formats auto updated"; \
30+
if [ -z "${GH_TOKEN}" ]; then \
31+
GIT_SSH=../_temp/ssh git push [email protected]:DamianZaremba/cv.git master; \
32+
else \
33+
git push "https://${GH_TOKEN}@github.com/DamianZaremba/cv.git" master &> /dev/null; \
34+
fi \
35+
fi
36+
37+
install: all push

damianzaremba.epub

-1 Bytes
Binary file not shown.

damianzaremba.pdf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)