mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-11 12:37:32 +03:00
Merge pull request #214 from mkfifo/travis-ci-builds
Adding travis ci builds covering osx and linux
This commit is contained in:
commit
eed888d63e
33
.travis.yml
Normal file
33
.travis.yml
Normal 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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user