-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add carthage 0.30.1 static framework support (#132)
* Fix #131 & Impl. Carthage 0.30.1 Static Support * Add integration tests to Travis (#133) * Split CI in Jobs and run tests (#134)
- Loading branch information
Showing
16 changed files
with
702 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,90 @@ | ||
os: osx | ||
language: objective-c | ||
osx_image: xcode9.4 | ||
|
||
git: | ||
depth: 1 | ||
|
||
# Use new container infrastructure to enable caching | ||
sudo: false | ||
|
||
# Choose a lightweight base image; we provide our own build tools. | ||
language: c | ||
|
||
# GHC depends on GMP. You can add other dependencies here as well. | ||
addons: | ||
apt: | ||
packages: | ||
- libgmp-dev | ||
|
||
# The different configurations we want to test. You could also do things like | ||
# change flags or use --stack-yaml to point to a different file. | ||
env: | ||
- ARGS="--resolver=lts-11.13" | ||
|
||
before_install: | ||
# Update ruby | ||
- rvm use 2.1 --install --binary --fuzzy | ||
|
||
# Download and unpack the stack executable | ||
- mkdir -p ~/.local/bin | ||
- export PATH=$HOME/.local/bin:$PATH | ||
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' | ||
|
||
# Download and instal hlint | ||
- rake hlint:install[2.0.9] | ||
|
||
install: | ||
# Run bundler and install the dependencies in vendor/bundle | ||
# so that it can be cached. | ||
- bundle install --deployment | ||
|
||
# This line does all of the work: installs GHC if necessary, build the library, | ||
# executables, and test suites, and runs the test suites. --no-terminal works | ||
# around some quirks in Travis's terminal implementation. | ||
script: | ||
- bundle exec danger | ||
- stack $ARGS setup | ||
- stack $ARGS test --no-terminal --haddock --no-haddock-deps | ||
- stack $ARGS build | ||
- stack $ARGS sdist | ||
- bundle exec pod lib lint | ||
|
||
# Caching so the next build will be fast too. | ||
rvm: 2.1 | ||
|
||
jobs: | ||
include: | ||
- stage: "Build" | ||
name: "Build Rome & Test Dymanic Frameworks" | ||
env: | ||
- ARGS="--resolver=lts-11.13" | ||
before_install: | ||
# Update Homebrew | ||
- brew update | ||
# Run bundler and install the dependencies in vendor/bundle | ||
# so that it can be cached. | ||
- bundle install --deployment | ||
install: | ||
# Install stack | ||
- mkdir -p ~/.local/bin | ||
- export PATH=$HOME/.local/bin:$PATH | ||
- brew install stack | ||
|
||
# Download and instal hlint | ||
- rake hlint:install[2.1.8] | ||
|
||
# Download and install minio | ||
- test ! -e $HOME/.local/bin/minio && travis_retry wget -O $HOME/.local/bin/minio https://dl.minio.io/server/minio/release/darwin-amd64/minio || echo "Minio already in cache" | ||
- chmod +x $HOME/.local/bin/minio | ||
|
||
# Install Carthage | ||
- brew outdated carthage || brew upgrade carthage | ||
|
||
# Install bats-core | ||
- brew install bats-core | ||
script: | ||
- bundle exec danger | ||
- stack $ARGS setup | ||
- stack $ARGS test --no-terminal --haddock --no-haddock-deps | ||
- stack $ARGS build | ||
- stack $ARGS sdist | ||
- stack $ARGS install | ||
- travis_wait 30 bats integration-tests/dynamic-frameworks.bats | ||
- stage: "Build" | ||
name: "Build Rome & Test Static Frameworks" | ||
env: | ||
- ARGS="--resolver=lts-11.13" | ||
before_install: | ||
# Update Homebrew | ||
- brew update | ||
# Run bundler and install the dependencies in vendor/bundle | ||
# so that it can be cached. | ||
- bundle install --deployment | ||
install: | ||
# Install stack | ||
- mkdir -p ~/.local/bin | ||
- export PATH=$HOME/.local/bin:$PATH | ||
- brew install stack | ||
|
||
# Download and instal hlint | ||
- rake hlint:install[2.1.8] | ||
|
||
# Download and install minio | ||
- test ! -e $HOME/.local/bin/minio && travis_retry wget -O $HOME/.local/bin/minio https://dl.minio.io/server/minio/release/darwin-amd64/minio || echo "Minio already in cache" | ||
- chmod +x $HOME/.local/bin/minio | ||
|
||
# Install Carthage | ||
- brew outdated carthage || brew upgrade carthage | ||
|
||
# Install bats-core | ||
- brew install bats-core | ||
script: | ||
- bundle exec danger | ||
- stack $ARGS setup | ||
- stack $ARGS test --no-terminal --haddock --no-haddock-deps | ||
- stack $ARGS build | ||
- stack $ARGS sdist | ||
- stack $ARGS install | ||
- travis_wait 30 bats integration-tests/static-frameworks.bats | ||
|
||
cache: | ||
directories: | ||
- $HOME/.local/bin | ||
- $HOME/.stack | ||
- vendor/bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.