Merge pull request #214 from mkfifo/travis-ci-builds

Adding travis ci builds covering osx and linux
This commit is contained in:
Erik Svedäng 2018-03-31 09:58:55 +02:00 committed by GitHub
commit eed888d63e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

33
.travis.yml Normal file
View File

@ -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

View File

@ -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)
<img src="https://github.com/carp-lang/Carp/blob/master/img/carp_logo_300_c.png" alt="Logo" align="right" />
<i>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!</i>