-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
31 lines (31 loc) · 1005 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
language: ruby
cache:
bundler: true
directories:
- "/home/travis/.rvm/"
rvm:
- 2.3.7
env:
- DOCKER_COMPOSE_VERSION=1.20.1
script:
- docker-compose --version
- docker-compose run -u $(id -u) -e RAILS_MASTER_KEY=$RAILS_MASTER_KEY app rake db:create db:migrate
- docker-compose run -u $(id -u) -e RAILS_MASTER_KEY=$RAILS_MASTER_KEY app rake test
- helm lint vizzy
before_install:
- openssl aes-256-cbc -K $encrypted_fb8ebefd631f_key -iv $encrypted_fb8ebefd631f_iv
-in secrets.yml.enc -out config/secrets.yml.enc -d
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname
-s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
- chmod 700 get_helm.sh
- sudo ./get_helm.sh
deploy:
provider: script
script: ./docker_push.sh
skip_cleanup: true
on:
branch: master