-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
47 lines (43 loc) · 1.82 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
36
37
38
39
40
41
42
43
44
45
46
47
language: ruby
rvm:
- 2.7.1
jobs:
include:
- stage: install
- stage: run_unit_tests
script:
# Run unit tests
- bundle exec rake
- stage: run_rainforest_tests
script:
# Install the latest stable version of rainforest-cli.
# This will allow us to trigger a Rainforest run before we deploy.
- curl https://api.github.com/repos/rainforestapp/rainforest-cli/releases/latest | jq -r '.assets[].browser_download_url' | grep linux-amd64 | xargs wget -O rainforest-cli.tgz
- tar xvf rainforest-cli.tgz
- sudo mv rainforest /usr/local/bin/rainforest
# Trigger Rainforest run and wait for results
- /usr/local/bin/rainforest run --run-group 7597 --token $RAINFOREST_TOKEN
deploy:
# Deploy to our staging environment on Heroku
- provider: heroku
api_key:
secure: CJdkaqDYW9GB4Sh73nhnQYeJ11O7ebSd+BtMwVA9LcU+y4bZ7VmAPk/heXmNwabe0yJ8QoHhULE8JEm0t2pzKYB+VAi2yt4gsKQ4RMW1KsJGo3xLrnv1IZs67BIXxdeq3WNq+kIcO106ZeHfKaKpUpV9DdcO+IfBAQOpz8jc1eU=
app: rainforest-ci-sample-staging
on:
repo: rainforestapp/ci-sample
branch: develop
# Deploy to our master environment on Heroku
- provider: heroku
api_key:
secure: CJdkaqDYW9GB4Sh73nhnQYeJ11O7ebSd+BtMwVA9LcU+y4bZ7VmAPk/heXmNwabe0yJ8QoHhULE8JEm0t2pzKYB+VAi2yt4gsKQ4RMW1KsJGo3xLrnv1IZs67BIXxdeq3WNq+kIcO106ZeHfKaKpUpV9DdcO+IfBAQOpz8jc1eU=
app: rainforest-ci-sample-prd
on:
repo: rainforestapp/ci-sample
branch: master
# Configure the RAINFOREST_TOKEN environment variable. You can get the secure
# string by running 'travis encrypt RAINFOREST_TOKEN=<my_token>'
env:
global:
secure: "ZFOc6JbZ5jeI0Gyg+oPWtzhIN7pJkiBKg4q5vy0hdogM1ySB5nWNIj1J283Ne5mvn2eg55lJEn49Gk9tO6EOhLWGp1v4DP6QiWNFIDkW0w0kaDdpq4mx5CEFSlUszo5zawdkMzixaMBY1EpA/Jgbi7BwRdbNqdkr2PLpcF9uVRY="
install:
- bundle install