Skip to content

Commit b06cbe2

Browse files
committed
Revert the revert of "Autodeploy latest master to internal.micro-analytics.io""
This reverts commit ddcf371.
1 parent 01c988f commit b06cbe2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ script: npm run test -- --coverage
77
cache: yarn
88
after_success:
99
- bash <(curl -s https://codecov.io/bash)
10+
11+
deploy:
12+
provider: script
13+
script: scripts/deploy.sh
14+
on:
15+
branch: master

scripts/deploy.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
echo "Installing now-pipeline"
2+
npm install -g now-pipeline
3+
4+
echo "Prune old instances"
5+
now-pipeline-prune
6+
7+
echo "Deploy and alias new instance"
8+
now-pipeline --test 'curl --fail $NOW_URL/test?inc=false' --alias internal.micro-analytics.io
9+

0 commit comments

Comments
 (0)