forked from CocoaPods/Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (37 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: ruby
bundler_args: --without debugging documentation
branches:
only:
- master
- /.+-stable$/
addons:
code_climate:
repo_token: 186c49521e629c51591c86f057f49fe388ce87603e04b5486f0c92f26f2a455f
rvm:
- 2.0.0-p647
- 2.3.4
- 2.4.1
- 2.6.2
env:
- LANG="en_US.UTF-8"
script: bundle exec rake spec
git:
submodules: false
before_install:
- gem install bundler -v "~> 1.17"
- |
master_sha="$(ruby -e "puts '`git submodule status spec/fixtures/spec-repos/master`'.strip.sub(/^-/, '').split(/\s/, 2).first")"
curl -ssL "https://github.com/CocoaPods/Specs/archive/$master_sha.tar.gz" | tar xz -C spec/fixtures/spec-repos
git rm spec/fixtures/spec-repos/master
mv "spec/fixtures/spec-repos/Specs-$master_sha" spec/fixtures/spec-repos/master
(
cd spec/fixtures/spec-repos/master
git init
git remote add origin https://github.com/CocoaPods/Specs.git
)
git submodule update --init
(
cd spec/fixtures/spec-repos/test_repo
git init
git remote add origin https://bitbucket.com/test/test_repo.git
)