Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add multiple ubuntu and osx build images #1617

Merged
merged 2 commits into from
Jun 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
# https://docs.haskellstack.org/en/stable/travis_ci/
# run on containerized infrastructure hopefully
dist: trusty
sudo: false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dist: trusty moves into the jobs: matrix below
sudo: false is deprecated/ignored

jobs:
include:
- os: linux
dist: xenial
- os: linux
dist: trusty
- os: linux
dist: bionic
- os: osx
osx_image: xcode11.6
- os: osx
osx_image: xcode11.3

language: generic

# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack

before_cache:
# Do any cleanup here to avoid caching junk.
before_cache:
# this was getting corrupted in the cache for osx ??
- rm -rf /Users/travis/.stack/setup-exe-cache
Comment on lines +23 to +25
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a support issue open with Travis for this.

And, I'd like to know if any other cache entries are getting corrupted, but I'm out of steam to:

  1. delete the cache
  2. construct the magic web request to launch a debug container
  3. tmate in and manually run the build with no cache (half an hour)
  4. figure out how to find + xargs + sha1sum
  5. run regular build to populate cache (another half an hour)
  6. run a debug build, tmate in, and re-sha1 the tree


before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- travis_retry curl -sSL https://get.haskellstack.org/ | sh
Comment on lines -19 to +31
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slurped up into this PR by accident.


install:
- stack ghc -- --version
Expand Down