forked from nestjs/nest-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (31 loc) · 915 Bytes
/
.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
sudo: required
services:
- docker
install: true
jobs:
include:
- stage: pull_request
if: type IN (pull_request)
env:
- ARTEFACT_ID=$TRAVIS_PULL_REQUEST
script:
- make artefact && make e2e
- stage: build_branch
if: NOT tag IS present AND type IN (push) AND NOT branch =~ ^sprint-*
env:
- ARTEFACT_ID=$TRAVIS_COMMIT
script:
- make artefact && make publish-artefact && make e2e
- stage: continuous_integration
if: NOT tag IS present AND type IN (push) AND branch =~ ^sprint-*
env:
- ARTEFACT_ID=$TRAVIS_COMMIT
script:
- make artefact && make publish-artefact && make publish-edge && make e2e
- stage: release
if: tag IS present
env:
- ARTEFACT_ID=$TRAVIS_COMMIT
- RELEASE_VERSION=$TRAVIS_TAG
script:
- make publish-release && make publish-npm-package