From 8e9b44be736b43a36ec56c567c68448e4e8f1e45 Mon Sep 17 00:00:00 2001 From: "Henry J. Wylde" Date: Wed, 21 Oct 2015 17:28:32 +1300 Subject: [PATCH] (#24) added in .travis.yml and badge to README.md --- .travis.yml | 33 +++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 34 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..446267d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,33 @@ +sudo: false + +language: c + +addons: + apt: + packages: + - libgmp3-dev + +cache: + directories: + - $HOME/.stack/ + +env: +- ARGS="" +- ARGS="--resolver lts-1" +- ARGS="--resolver lts-2" +- ARGS="--resolver lts-3" +- ARGS="--resolver lts" +- ARGS="--resolver nightly" + +before_install: +- mkdir -p ~/.local/bin +- export PATH=~/.local/bin:$PATH +- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip=1 -C ~/.local/bin '*/stack' + +install: +- travis_wait stack $ARGS --no-terminal --skip-ghc-check setup +- travis_wait stack $ARGS --no-terminal --skip-ghc-check test --only-snapshot + +script: +- stack $ARGS --no-terminal --skip-ghc-check test + diff --git a/README.md b/README.md index da7871d..dc252b4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # language-qux [![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/1.0.0/active.svg)](http://www.repostatus.org/#active) +[![Build Status](https://travis-ci.org/qux-lang/language-qux.svg?branch=master)](https://travis-ci.org/qux-lang/language-qux) [![Release](https://img.shields.io/github/release/qux-lang/language-qux.svg)](https://github.com/qux-lang/language-qux/releases) Qux is an experimental language developed from the ground up with the aim of supporting extended