From 2a267229739191ea9a230f9b65603b3a69c8dcd1 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Sat, 31 Mar 2018 10:40:00 +1100 Subject: [PATCH 1/2] First attempt at new Carp stack-based travis config --- .travis.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..219c8abb --- /dev/null +++ b/.travis.yml @@ -0,0 +1,33 @@ +# language `ghc` drags in old ghc versions +# language `generic` drags in too many others deps +# language `c` is lighter weight, and is fine since we declare most of our own deps +language: c + +# sudo false gives us faster build times as it can use newer infrastructure +sudo: false + +os: + - linux + - osx + +# cache only works if sudo is false +# this will attempt to cache the contents of the specified directories between +# runs to speed up install times +cache: + directories: + - $HOME/.stack + +# download and unpack the stack executable +before_install: + - mkdir -p ~/.local/bin + - export PATH=$HOME/.local/bin:$PATH + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz ; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_retry curl -L https://www.stackage.org/stack/osx-x86_64 | tar xz ; fi + - cp stack-*/stack ~/.local/bin/ + - chmod a+x ~/.local/bin/stack + +script: + - travis_wait stack setup --no-terminal + - travis_wait stack build --no-terminal + - travis_wait stack test --no-terminal + From 3bb1d1e55a0656a297e40113ce663eb39c9e1127 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Sat, 31 Mar 2018 10:48:51 +1100 Subject: [PATCH 2/2] adding travis build badge to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index af9f11b4..53241cf0 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ [![Join the chat at https://gitter.im/eriksvedang/Carp](https://badges.gitter.im/eriksvedang/Carp.svg)](https://gitter.im/eriksvedang/Carp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[![Build Status](https://travis-ci.org/carp-lang/Carp.svg?branch=master)](https://travis-ci.org/carp-lang/Carp) + Logo WARNING! This is a research project and a lot of information here might become outdated and misleading without any explanation. Don't use it for anything important!