-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
38 lines (28 loc) · 782 Bytes
/
.travis.yml
File metadata and controls
38 lines (28 loc) · 782 Bytes
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
35
36
37
38
language: node_js
node_js:
- "8"
sudo: required
services:
- docker
cache:
yarn: true
install:
- yarn
script:
- yarn lint .
after_success:
# tag branch name.
# Push only for push integrations, not pull request.
- if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
docker build -t lynlab/datasource:${TRAVIS_BRANCH} .
docker push lynlab/datasource:${TRAVIS_BRANCH}
if [ "${TRAVIS_BRANCH}" == "master" ]; then
docker build -t lynlab/datasource:latest .
docker push lynlab/datasource:latest
fi
if [ -n "${TRAVIS_TAG}" ]; then
docker build -t lynlab/datasource:${TRAVIS_TAG} .
docker push lynlab/datasource:${TRAVIS_TAG}
fi
fi