-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
35 lines (35 loc) · 1.08 KB
/
.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
sudo: false
language: ruby
rvm:
- 2.5.5
- 2.6.2
- ruby-head
branches:
only:
- master
- 5-2-stable
cache:
bundler: true
directories:
- vendor/bundle
- $HOME/.rvm
before_install:
- openssl aes-256-cbc -K $encrypted_b34f33f06a22_key -iv $encrypted_b34f33f06a22_iv
-in deploy_key.enc -out ./deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 600 ./deploy_key
- echo -e "Host $SERVER_IP_ADDRESS\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ssh-add ./deploy_key
- ssh -i ./deploy_key $USER@$SERVER_IP_ADDRESS -p $PORT pwd
install:
- travis_retry gem update --system
- travis_retry gem install bundler
- travis_retry bundle install
- travis_retry bundle update
after_success:
- test $TRAVIS_BRANCH = "master" && test $TRAVIS_RUBY_VERSION = "2.6.2" &&
sed -i "2 i\REMOTE_FOR_DEPLOY=$REMOTE_FOR_DEPLOY_EDGE" ./deploy.sh && bash ./deploy.sh master
- test $TRAVIS_BRANCH = "5-2-stable" && test $TRAVIS_RUBY_VERSION = "2.6.2" &&
sed -i "2 i\REMOTE_FOR_DEPLOY=$REMOTE_FOR_DEPLOY" ./deploy.sh && bash ./deploy.sh v5.2 stable
notifications:
email: false