File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ before_install:
9
9
- cargo fmt --all -- --check
10
10
install :
11
11
- curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
12
- before_script :
13
- - heroku container:login
14
- - heroku container:pull --app=rfcbot-rs web
12
+ before_script : |
13
+ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
14
+ heroku container:login
15
+ heroku container:pull --app=rfcbot-rs web
16
+ fi
15
17
script : |
16
- heroku container:push --app=rfcbot-rs web
18
+ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then heroku container:push --app=rfcbot-rs web; fi
17
19
docker-compose up -d
18
20
docker-compose exec web cargo test --release --locked
19
21
after_failure :
@@ -25,8 +27,10 @@ cache:
25
27
directories :
26
28
- " $HOME/.cargo"
27
29
before_deploy : |
30
+ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
28
31
docker-compose exec -e DATABASE_URL=$(heroku config:get DATABASE_URL --app=rfcbot-rs) web \
29
32
diesel migration run
33
+ fi
30
34
deploy :
31
35
provider : script
32
- script : heroku container:release --app=rfcbot-rs web
36
+ script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then heroku container:release --app=rfcbot-rs web; fi
You can’t perform that action at this time.
0 commit comments