-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
35 lines (29 loc) · 953 Bytes
/
.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
language: ruby
rvm:
- 2.5.8
- 2.6.6
- ruby-head
sudo: false
dist: trusty
cache:
bundler: true
directories:
- "$HOME/google-cloud-sdk/"
before_install:
- gcloud version || true
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash; fi
# Add gcloud to $PATH:
- source /home/travis/google-cloud-sdk/path.bash.inc
- gcloud version
- gcloud components install cloud-datastore-emulator
- export PATH="$HOME/google-cloud-sdk/platform/cloud-datastore-emulator:$PATH"
install:
- bundle install --jobs=3 --retry=3
- (cd test/support/datastore_example_rails_app/ && BUNDLE_GEMFILE=./Gemfile bundle install --jobs=3 --retry=3)
script:
- bundle exec rake
- (cd test/support/datastore_example_rails_app/ ; BUNDLE_GEMFILE=./Gemfile bundle exec rake)
- bundle exec rubocop
matrix:
allow_failures:
- rvm: ruby-head