Skip to content

Commit

Permalink
Add travis support
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Apr 11, 2020
1 parent 14e1077 commit 9032df9
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 4 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
@@ -0,0 +1,42 @@
jobs:
include:
- os: osx
osx_image: xcode10.1
language: generic
env: ARTIFACT=x86_64-apple-darwin-10.13-ghcup
addons:
homebrew:
packages:
- curl
- libffi
- libiconv
- make
- ncurses
- xz

- os: osx
osx_image: xcode11.3
language: generic
env: ARTIFACT=x86_64-apple-darwin-10.14-ghcup
addons:
homebrew:
packages:
- curl
- libffi
- libiconv
- make
- ncurses
- xz

script: ".travis/build.sh"

deploy:
provider: releases
api_key:
secure: bZW4SpPYvjA5vCdTTHhME1yKcNwvix9OgNiQ6foJanySNoE5x1TED2ZZD9wFtVNYMCldlkL3DlosrlDNHyvEAlC5myraKLIfZ26F1hGBbtxenCb+nAbcW3wDRMUXA30PNcp4hKuFU+mBKwE2xwav/wWLfX+YlaVvjD6t4ZaQriubtuE/zIIWW0itirorcpAAgW6Lojif/oPGEtC6LsA3+hmHX8OaTjNnsWiSurxobraNqKUWh/0JlC5xCWkqi8hYq0fHRfzVU+k7MMuWkHV4LkaW2FUlpbRzs2CzeZjCRmNHbvhUdSEo5e6ux/2YCKEOSRUUASzsbKodvVQS9rC5bNQZZ0XFtG9VpddzSTLUYEGGzLM671vAL+iT91kF4q4zt9EtKhZnKwfCVO1X2/SBEzOYSzkqtV1a6aP3B9CI22WByJQmh2AoZ6gbd1Id7ntjTqFjm1WyCwsyIEjKPb7jCG+xNUDlZnqNYYEI9qnXUR6wC1tOYEY95U23cU2xYjLvxArEGXG77qXm6sBgnBZoTlIU4aoDOniMdxADJNmHpSFTK7zQirSmPmF/BEPF+GeyqmpmpCivSXuBfM+63tU+o98XMqeRA5nIwIQ3L2MJfv1d69IjKASOL7Yq/P5lY3hBh1v8jZiU2LiT9yj7y4P8V9+8yg5XwDldpZPcD5fB7ls=
file: $ARTIFACT
on:
repo: hasufell/ghcup-hs
tags: true
skip_cleanup: true
draft: true
22 changes: 22 additions & 0 deletions .travis/build.sh
@@ -0,0 +1,22 @@
#/bin/sh

set -ex

## install ghc via old ghcup

mkdir -p ~/.ghcup/bin
curl https://gitlab.haskell.org/haskell/ghcup/raw/master/ghcup > ~/.ghcup/bin/ghcup
chmod +x ~/.ghcup/bin/ghcup

export PATH="$HOME/.ghcup/bin:$PATH"

ghcup install 8.8.3
ghcup install-cabal 3.2.0.0
ghcup set 8.8.3


## install ghcup

cabal update
cabal build -fcurl
cp "$(cabal new-exec --verbose=0 --offline sh -- -c 'command -v ghcup')" "./${ARTIFACT}"
5 changes: 1 addition & 4 deletions cabal.project
Expand Up @@ -6,14 +6,11 @@ package streamly
ghc-options: -O2 -fspec-constr-recursive=16 -fmax-worker-args=16

package ghcup
ghc-options: -O2 -fspec-constr-recursive=16 -fmax-worker-args=16 -split-sections
ghc-options: -O2 -fspec-constr-recursive=16 -fmax-worker-args=16

package tar-bytestring
ghc-options: -O2

package *
ghc-options: -split-sections

constraints: http-io-streams -brotli

allow-newer: base
Empty file added foo
Empty file.

0 comments on commit 9032df9

Please sign in to comment.