-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from Submitty/deploy
Add deployment functionality to Travis CI
- Loading branch information
Showing
3 changed files
with
29 additions
and
22 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 |
---|---|---|
@@ -1,27 +1,32 @@ | ||
dist: trusty | ||
sudo: false | ||
|
||
language: c | ||
|
||
cache: | ||
directories: | ||
- ~/.stack/ | ||
|
||
- "~/.stack/" | ||
addons: | ||
apt: | ||
packages: | ||
- libgmp-dev | ||
|
||
- libgmp-dev | ||
before_install: | ||
- mkdir -p ~/.local/bin | ||
- export PATH=$HOME/.local/bin:$PATH | ||
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' | ||
|
||
- mkdir -p ~/.local/bin | ||
- export PATH=$HOME/.local/bin:$PATH | ||
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' | ||
install: | ||
- travis_wait 30 stack --no-terminal --install-ghc build | ||
- stack --no-terminal install hlint | ||
|
||
- travis_wait 30 stack --no-terminal --install-ghc build | ||
- stack --no-terminal install hlint | ||
script: | ||
- stack --no-terminal test --only-dependencies | ||
- ./hlint '--ignore=Parse error' src # All parse errors should be caught during compilation, and HLint erroneously throws a parse error | ||
- ./hlint '--ignore=Parse error' app # when using constrained types alongside a record-syntax GADT declaration (bug in haskell-src-exts). | ||
- stack --no-terminal test --only-dependencies | ||
- "./hlint '--ignore=Parse error' src" | ||
- "./hlint '--ignore=Parse error' app" | ||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: zM6T6ZwD1Tv0Igk9LORh3YZJvLlZHtjEbb6vkAQTicQ82Y/Ls88+67C0S4IkJbCkWqLUkfLkCv2x8aaZ7O6cbGi2xDtSPf+NyWfagvA+E2I6T2USJ93iYNs10Ep/SoAx7NEn6hnEKkNJd/kdFYtx/CvgXeN+PYHRfBD+NF106zoV4b9cF/mgSev/fxXqwT3GhaBJ/EEQ9LtEvgek3vjVWiSchCuubDdklgfAcgSBzGoQQLxyCq/BRF28ekFefKRQKiUNS4WI2btv+VnrP8xOvIPXnMSkFeF++druwPI75LRWYrhZA1ayj/5/NMHnn+TE4BMm5a2bdoLocvRHOwFIeK29oS5CdDttfiwpGHIykZGCoMIehfTJIecXyxezs1K8p0E6PV3eoCGyodXCoRDUXMWVUSaGbWnaIR8XcIOi3Rl6aYYfXWJc0MKiaQYSNQ7X2f4CqDDANqu587FPBQyHwlaEpXbb/bxFR6tvGSwnWgeU+bHseSKMesDz+wzhFHbyA77ls48dlKS2jpm/6qGx2Av1agz/cT7AJjrfuOhj8ZhpSIMtl3p1CfUCw1hh6lm42LrwOTRSBLMW7ErYDD5w4xw1YLQKMZVERGDrwYDVcbjgymZO0kE4kE1eh7KJJFZhsMkVCc/C3hi0TCtgjfiZ6uLKs5NYUUmiD9rCbp5UNeY= | ||
file: | ||
- count | ||
- plagiarism | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
repo: Submitty/AnalysisTools |
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# Analysis Tools [![Build Status](https://travis-ci.org/Submitty/AnalysisTools.svg?branch=master)](https://travis-ci.org/Submitty/AnalysisTools) | ||
This repository contains a variety of tools used for source code analysis. | ||
|
||
## Installation | ||
|
||
apt-get install stack | ||
stack upgrade --install-ghc | ||
## Building | ||
git clone https://github.com/Submitty/AnalysisTools | ||
cd AnalysisTools | ||
stack install | ||
stack build | ||
|
||
## Guidelines for Contribution | ||
- Make sure all Haskell code builds with no warnings (`lichen.cabal` by default sets `-Wall -Werror`). | ||
- Run `hlint` over the code to ensure correct style (you may want to use `hlint '--ignore=Parse error'` to avoid some bugs). | ||
- Generally, follow the [Submitty developer guidelines](http://submitty.org/developer/development_instructions). |
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