-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ cabal.sandbox.config | |
cabal.config | ||
_cache | ||
_site | ||
.stack-work/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,12 @@ language: haskell | |
branches: | ||
only: | ||
- source | ||
install: | ||
- wget https://github.com/commercialhaskell/stack/releases/download/v1.0.0/stack-1.0.0-linux-x86_64.tar.gz -O stack.gz | ||
- tar xvf stack.gz | ||
- chmod +x stack-1.0.0-linux-x86_64/stack | ||
- stack-1.0.0-linux-x86_64/stack setup | ||
- stack-1.0.0-linux-x86_64/stack build | ||
before_script: | ||
- git config --global user.name 'Build Bot' | ||
- git config --global user.email '[email protected]' | ||
|
@@ -11,7 +17,7 @@ before_script: | |
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- mkdir deploy/ | ||
script: | ||
- cabal build && dist/build/navya-website/navya-website build | ||
- .stack-work/install/x86_64-linux/lts-2.0/7.8.4/bin/navya-website build | ||
after_script: | ||
- cp -r _site/* deploy/ | ||
- cd deploy/ | ||
|
@@ -21,6 +27,7 @@ after_script: | |
- git add --all . | ||
- git commit -m "generated on `date`" | ||
- git push origin master --force -q | ||
after_success: true | ||
env: | ||
global: | ||
- REPO="[email protected]:navya/navya.github.io.git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: | ||
- '.' | ||
resolver: lts-2.0 |