Skip to content

Commit e7c5c29

Browse files
authored
Create .travis.yml
1 parent a097c38 commit e7c5c29

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# The blog source is in the site branch
2+
# so we want to only build when a push has been made to that branch
3+
branches:
4+
only:
5+
- site
6+
git:
7+
depth: false
8+
9+
# This gives us full control over what we intend to do
10+
# in the job
11+
language: generic
12+
# Needed for docker
13+
sudo: required
14+
services:
15+
- docker
16+
17+
# Specify the github pages deploy provider
18+
deploy:
19+
provider: pages
20+
skip-cleanup: true
21+
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
22+
on:
23+
branch: site
24+
target-branch: master
25+
local-dir: output
26+
fqdn: echorand.me # This updates the repository settings in GitHub and also adds a CNAME file in the master branch
27+
verbose: true
28+
before_install:
29+
- docker build -t amitsaha/pelican .
30+
install:
31+
- docker run -v `pwd`:/site:Z -t amitsaha/pelican

0 commit comments

Comments
 (0)