Created
June 9, 2019 16:42
-
-
Save digitalmoksha/a40723178a7534473694bba8dc3d1676 to your computer and use it in GitHub Desktop.
Sample `.travis.yml` for running test on Ruby/Rubymotion gems
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
# test against both regular Ruby and RubyMotion | |
language: ruby | |
cache: | |
- bundler | |
# latest stable/supported versions | |
rvm: | |
- 2.4.6 | |
- 2.5.5 | |
- 2.6.3 | |
before_install: | |
- (ruby --version) | |
script: | |
- bundle install --jobs=3 --retry=3 | |
- bundle exec rake spec | |
jobs: | |
include: | |
- stage: rubymotion | |
os: osx | |
osx_image: xcode9.1 | |
language: objective-c | |
rvm: 2.4.2 # pre-installed in image | |
cache: | |
- bundler | |
- cocoapods | |
script: | |
- sudo chown -R travis ~/Library/RubyMotion | |
- sudo mkdir -p ~/Library/RubyMotion/build | |
- sudo chown -R travis ~/Library/RubyMotion/build | |
- sudo motion update | |
- sudo motion repo | |
- cd rubymotion | |
- bundle install --gemfile=./Gemfile --jobs=3 --retry=3 | |
- bundle exec rake clean | |
- bundle exec rake spec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment