-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
24 lines (24 loc) · 956 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
language: c
sudo: required
dist: trusty
services:
- docker
cache:
directories:
- "$HOME/google-cloud-sdk/"
env:
- PATH=${HOME}/google-cloud-sdk/bin:${PATH} CLOUDSDK_PYTHON_SITEPACKAGES=1 CLOUDSDK_CORE_DISABLE_PROMPTS=1
before_install:
- openssl aes-256-cbc -K $encrypted_36afdb4d1021_key -iv $encrypted_36afdb4d1021_iv -in gcp-travisci.json.enc -out gcp-travisci.json -d
- echo "deb http://packages.cloud.google.com/apt cloud-sdk-$(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list
- curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
- sudo apt-get update -qq && sudo apt-get install google-cloud-sdk
- gcloud auth activate-service-account --key-file gcp-travisci.json
install:
- gcloud config set project project-kel
before_script:
- docker pull quay.io/kelproject/bundle-builder:git-422ed76f
script:
- ./scripts/ci/build.sh
after_success:
- ./scripts/ci/deploy.sh