Skip to content

Commit 4325803

Browse files
Adding deployment and test automations (#13)
* [FIX] Broken links identified by htmlproofer. * [ADD] Deployment configuration to deploy website if it validates successfully by tests.
1 parent 4764b68 commit 4325803

7 files changed

+26
-14
lines changed

.travis.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
language: ruby
22
rvm:
3-
- 2.3.3
4-
3+
- 2.3.3
54
script:
6-
- ./scripts/build
7-
- ./scripts/test
8-
5+
- "./scripts/build"
6+
- "./scripts/test"
97
branches:
108
only:
11-
- master
12-
- /master-(.*)/ # test every branch which starts with "pages-"
9+
- master
10+
- "/master-(.*)/"
11+
before_install:
12+
- openssl aes-256-cbc -K $encrypted_550be8be9cea_key -iv $encrypted_550be8be9cea_iv
13+
-in keypair.pem.enc -out keypair.pem -d
14+
deploy:
15+
provider: script
16+
script: scripts/deploy
17+
on:
18+
branch: master

_posts/2017-01-08-2016-a-year-dedicated-to-python-workshops.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Photos
9898
![kskv_kachchh_university]({{site.url}}/assets/images/kskvku_photo.jpg)
9999

100100
<p class="center">
101-
At <a href="http://cs.kutchuni.edu.in/">K.S.K.V. Kachchh University</a>
101+
At <a href="http://cs.kskvku.ac.in/">K.S.K.V. Kachchh University</a>
102102
</p>
103103

104104
**- - -**
@@ -158,7 +158,7 @@ Photos
158158
![Engineering college Ajmer]({{site.url}}/assets/images/engineering_college_ajmer.jpg)
159159

160160
<p class="center">
161-
At <a href="http://www.gweca.ac.in/web/">Government Women Engineering College Ajmer</a>
161+
At <a href="http://www.gweca.ac.in">Government Women Engineering College Ajmer</a>
162162
</p>
163163

164164
**- - -**
@@ -174,7 +174,7 @@ Photos
174174
![Pycon India]({{site.url}}/assets/images/pycon_india.jpg)
175175

176176
<p class="center">
177-
At <a href="http://in.pycon.org/2016/">PyCon India, New Delhi</a>
177+
At <a href="https://in.pycon.org/2016/">PyCon India, New Delhi</a>
178178
</p>
179179

180180
**- - -**

_posts/2017-02-28-book-review-introduction-to-the-commandline.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ minutes to drive the change.
137137
###### Proofreader: [Dhavan Vaidya](http://codingquark.com/)
138138

139139

140-
[vim]: http://vim.org/
140+
[vim]: http://www.vim.org/

_posts/2017-03-14-pycon-pune-2017-a-wonderful-python-conference.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Honza is the dude who loves contributing to
9292
too. He hacks on Python drivers at [Elastic](https://www.elastic.co/). I was
9393
impressed with his suggestions on a code design problem I was trying to solve
9494
from the past few months. His suggestions on code design are worth noticing. He
95-
is a vimmer and maintains little [vim](http://vim.org) plugins as a part of his
95+
is a vimmer and maintains little [vim](http://www.vim.org) plugins as a part of his
9696
interest.
9797

9898
#### [Stephen J. Turnbull](https://twitter.com/yasegumi)
@@ -172,7 +172,7 @@ instructed to hack at a huge cafeteria section. I myself contributed to Core
172172
Python. Nick Coghlan was mentoring for Core Python. I reviewed one PR, found one
173173
broken test case and wrote a fix of an existing issue with his help. Honza was
174174
leading the development of Django web framework. A team of [Anand
175-
Chitipothu](http://anandology.com/) mentored for [Web2py](www.web2py.com/).
175+
Chitipothu](http://anandology.com/) mentored for [Web2py](http://www.web2py.com/).
176176
[Farhaan Bukhsh](https://twitter.com/fhackdroid) mentored for
177177
[Pagure](https://github.com/pypingou/pagure). John Hawley encouraged
178178
contributing to [MicroPython](https://micropython.org/). Terr Oda, Stephen

keypair.pem.enc

1.67 KB
Binary file not shown.

scripts/deploy

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
./scripts/build
4+
5+
rsync -avr --rsh="ssh -i keypair.pem" --delete-after --delete-excluded _site/ [email protected]:/home/travis_ftp/html/blog/

scripts/test

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
bundle exec htmlproofer ./_site
1+
./scripts/build
2+
bundle exec htmlproofer ./_site/ --file-ignore "/.+\/_site\/tags.+/" --url-ignore "/chameleon.kingdomofmysteries.xyz/,/https://reps.mozilla.org/e/maker-party-gujarat/" --only-4xx

0 commit comments

Comments
 (0)