forked from meringu/code_deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 826 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
sudo: required
language: ruby
rvm:
- 3.0.1
services:
- docker
script:
- |
if [ $SUITE != unit ]; then
KITCHEN_YAML=.kitchen.docker.yml bundle exec kitchen test $SUITE
fi
- |
if [ $SUITE = unit ]; then
bundle exec rspec
fi
deploy:
provider: script
script: openssl aes-256-cbc -K $encrypted_ecb18825a7dd_key -iv $encrypted_ecb18825a7dd_iv -in .supermarket.pem.enc -out .supermarket.pem -d && rvm $TRAVIS_RUBY_VERSION do bundle exec stove login --username meringu --key .supermarket.pem && rvm $TRAVIS_RUBY_VERSION do bundle exec stove --no-git
on:
tags: true
condition: $SUITE = unit
env:
- SUITE=unit
- SUITE=default-centos-72
- SUITE=default-ubuntu-1404
- SUITE=default-ubuntu-1604
- SUITE=uninstall-centos-72
- SUITE=uninstall-ubuntu-1404
- SUITE=uninstall-ubuntu-1604