forked from flywheel-io/exchange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (33 loc) · 971 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
36
37
38
39
40
sudo: required
language: python
env:
global:
- CLOUDSDK_CORE_DISABLE_PROMPTS=1
services:
- docker
cache:
directories:
- "$HOME/google-cloud-sdk"
before_install:
# Install gcloud
# From https://stackoverflow.com/questions/38762590/how-to-install-google-cloud-sdk-on-travis
- export BOTO_CONFIG=/dev/null
- gcloud version || true
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then
rm -rf $HOME/google-cloud-sdk;
curl https://sdk.cloud.google.com | bash;
fi
- source $HOME/google-cloud-sdk/path.bash.inc
- gcloud version
install:
- pip install jsonschema
- pip install git+https://github.com/flywheel-io/gears.git
script:
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
- git fetch --quiet
- if [ -z "$TRAVIS_PULL_REQUEST_BRANCH" ]; then
git checkout $TRAVIS_BRANCH;
else
git checkout $TRAVIS_PULL_REQUEST_BRANCH || true;
fi
- travis_wait 1440 bin/process-manifests.sh