forked from nestjs/schematics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (31 loc) · 946 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:
- ARTIFACT_ID=$TRAVIS_PULL_REQUEST
script:
- make build-docker-artifact
- stage: build_branch
if: NOT tag IS present AND type IN (push) AND NOT branch =~ ^sprint-*
env:
- ARTIFACT_ID=$TRAVIS_COMMIT
script:
- make build-docker-artifact && make publish-docker-artifact
- stage: continuous_integration
if: NOT tag IS present AND type IN (push) AND branch =~ ^sprint-*
env:
- ARTIFACT_ID=$TRAVIS_COMMIT
script:
- make build-docker-artifact && make publish-docker-artifact && make publish-docker-edge
- stage: release
if: tag IS present
env:
- ARTIFACT_ID=$TRAVIS_COMMIT
- RELEASE_VERSION=$TRAVIS_TAG
script:
- make publish-npm-release && make publish-docker-release