Skip to content

Commit

Permalink
Merge pull request #24 from Submitty/deploy
Browse files Browse the repository at this point in the history
Add deployment functionality to Travis CI
  • Loading branch information
chameco authored Jun 28, 2017
2 parents cf620a9 + 003ecbe commit 43f847e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 22 deletions.
37 changes: 21 additions & 16 deletions .travis.yml
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
12 changes: 7 additions & 5 deletions README.md
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).
2 changes: 1 addition & 1 deletion lichen.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: lichen
version: 0.1.0.0
version: 0.2.0
synopsis: Plagiarism Detection and Other Static Analysis
description: Please see README.md
homepage: https://github.com/Submitty/AnalysisTools
Expand Down

0 comments on commit 43f847e

Please sign in to comment.