Skip to content

Commit 7a73e15

Browse files
authored
Reorganize Travis deploy stages (#405)
Heroku is now deployed along with the other platforms, since it doesn't directly depend on any of them. Bazel is deployed after everything else, because it depends on npm deploying successfully.
1 parent 6d3cd8d commit 7a73e15

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.travis.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ script: tool/travis/test.sh
7070
jobs:
7171
include:
7272
# Deploy to GitHub.
73-
- stage: deploy
73+
- stage: deploy 1
7474
if: &deploy-if
7575
(type IN (push, api)) AND (repo = sass/dart-sass) AND tag =~ ^\d+\.\d+\.\d+([+-].*)?$
7676
env: &github-env
@@ -126,16 +126,6 @@ jobs:
126126
skip_cleanup: true
127127
on: {tags: true}
128128

129-
# Deploy to Bazel.
130-
- if: *deploy-if
131-
env: *github-env
132-
script: skip
133-
deploy:
134-
provider: script
135-
script: pub run grinder update-bazel
136-
skip_cleanup: true
137-
on: {tags: true}
138-
139129
# Deploy to Chocolatey.
140130
- if: *deploy-if
141131
env:
@@ -148,9 +138,8 @@ jobs:
148138
skip_cleanup: true
149139
on: {tags: true}
150140

151-
# Redeploy sass-lang.com when a build succeeds.
152-
- stage: site
153-
if: *deploy-if
141+
# Redeploy sass-lang.com.
142+
- if: *deploy-if
154143
env:
155144
# HEROKU_TOKEN="..."
156145
- secure: "jF3TCL+k6xdXWfEh54K6KrZ3w0oljUpP0uy9Hx0BIM5gaqG6fUijUnNGCkWDZxufEpl68mGxNRNMB2Mv++UXHiT7ChFx8zZqEyc5FzhIu/nVO3CP3Sek7fuktYidtUvqJ6eHkI15990dWkUoE+TTXTc4/Z9vv1Lt3JX8Ni5VApGCmcLjRwW52EkCC49xo7cWE8/wBEm2ntOivLBIXEKq6hpncXTO4H5KYt042WAJ+MPmQZYE1ENJAObXWrGituRCT6DQnIJuTodOn24SU1KJuvEtfskEJQUajIIQw29uvmu4TP7dgaJw8QBt+hdgcCYrMhoq3RTNmD+vitLRloG4QMWHFYhzONVZ8S3vAhKeolL7nnIz150FpLVQiddSLsdGomqjCfYEJN7TVrwvunGgHxygcGBcq2AiydnxREnlW9Rj6m6g6TVlhdX7JtyePDQN7xEDdZF1UbGMA6CDjzFsi0GY2WNLSCAANUOXmst0kDIFHGc6WkIUXMIbfmkUZADKzF/JDtnEQqtU8Qxc8JfW6ODXqC/fowE3q4cr8NnJMtclyIL/DsWSx2ph3vUr/VH5MWXd4MDJ6ZRnSJHaY2E0IYcKU2JEpA8r7xrFK/+/B9qCMPnoegRFfuN+zHM9b84rNzaF8fmuWuMVKzncw/TvXttRFqoZVS2Ej1EfLY3SA3M="
@@ -162,3 +151,15 @@ jobs:
162151
# private endpoint instead.
163152
script: tool/travis/deploy/heroku.sh
164153
on: {tags: true}
154+
155+
# Deploy to Bazel. This is in a separate deploy stage because it needs to
156+
# install the npm package.
157+
- stage: deploy 2
158+
if: *deploy-if
159+
env: *github-env
160+
script: skip
161+
deploy:
162+
provider: script
163+
script: pub run grinder update-bazel
164+
skip_cleanup: true
165+
on: {tags: true}

0 commit comments

Comments
 (0)