Skip to content

Commit 43f847e

Browse files
authored
Merge pull request #24 from Submitty/deploy
Add deployment functionality to Travis CI
2 parents cf620a9 + 003ecbe commit 43f847e

File tree

3 files changed

+29
-22
lines changed

3 files changed

+29
-22
lines changed

.travis.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
dist: trusty
22
sudo: false
3-
43
language: c
5-
64
cache:
75
directories:
8-
- ~/.stack/
9-
6+
- "~/.stack/"
107
addons:
118
apt:
129
packages:
13-
- libgmp-dev
14-
10+
- libgmp-dev
1511
before_install:
16-
- mkdir -p ~/.local/bin
17-
- export PATH=$HOME/.local/bin:$PATH
18-
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
19-
12+
- mkdir -p ~/.local/bin
13+
- export PATH=$HOME/.local/bin:$PATH
14+
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
2015
install:
21-
- travis_wait 30 stack --no-terminal --install-ghc build
22-
- stack --no-terminal install hlint
23-
16+
- travis_wait 30 stack --no-terminal --install-ghc build
17+
- stack --no-terminal install hlint
2418
script:
25-
- stack --no-terminal test --only-dependencies
26-
- ./hlint '--ignore=Parse error' src # All parse errors should be caught during compilation, and HLint erroneously throws a parse error
27-
- ./hlint '--ignore=Parse error' app # when using constrained types alongside a record-syntax GADT declaration (bug in haskell-src-exts).
19+
- stack --no-terminal test --only-dependencies
20+
- "./hlint '--ignore=Parse error' src"
21+
- "./hlint '--ignore=Parse error' app"
22+
deploy:
23+
provider: releases
24+
api_key:
25+
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=
26+
file:
27+
- count
28+
- plagiarism
29+
skip_cleanup: true
30+
on:
31+
tags: true
32+
repo: Submitty/AnalysisTools

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Analysis Tools [![Build Status](https://travis-ci.org/Submitty/AnalysisTools.svg?branch=master)](https://travis-ci.org/Submitty/AnalysisTools)
22
This repository contains a variety of tools used for source code analysis.
33

4-
## Installation
5-
6-
apt-get install stack
7-
stack upgrade --install-ghc
4+
## Building
85
git clone https://github.com/Submitty/AnalysisTools
96
cd AnalysisTools
10-
stack install
7+
stack build
8+
9+
## Guidelines for Contribution
10+
- Make sure all Haskell code builds with no warnings (`lichen.cabal` by default sets `-Wall -Werror`).
11+
- Run `hlint` over the code to ensure correct style (you may want to use `hlint '--ignore=Parse error'` to avoid some bugs).
12+
- Generally, follow the [Submitty developer guidelines](http://submitty.org/developer/development_instructions).

lichen.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: lichen
2-
version: 0.1.0.0
2+
version: 0.2.0
33
synopsis: Plagiarism Detection and Other Static Analysis
44
description: Please see README.md
55
homepage: https://github.com/Submitty/AnalysisTools

0 commit comments

Comments
 (0)