This repository was archived by the owner on Apr 13, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
44 lines (41 loc) · 1.31 KB
/
.travis.yml
File metadata and controls
44 lines (41 loc) · 1.31 KB
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
39
40
41
42
43
sudo: false
language: node_js
node_js:
- "12"
cache:
directories:
- node_modules
stages:
- check
- name: cover
if: branch = master AND type = push
- name: versioning
if: branch = master AND type = push
- name: publish
if: tag IS present
jobs:
include:
- stage: check
script:
- npm run lint
- npm run test
- stage: cover
script:
- npm run test:cover
- bash <(curl -s https://codecov.io/bash) -t "${CODECOV_TOKEN}" -f coverage/*.json
- stage: versioning
script:
- npx @priestine/semantics@${SEMANTICS_VERSION}
- stage: publish
services:
- docker
script:
- bash deploy_npm.sh
- docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
- docker build -t priestine/semantics:${TRAVIS_TAG}-alpine - < ./docker/alpine.Dockerfile
- docker build -t priestine/semantics:${TRAVIS_TAG} - < ./docker/alpine.Dockerfile
- docker build -t priestine/semantics:latest - < ./docker/alpine.Dockerfile
- docker build -t priestine/semantics:alpine - < ./docker/alpine.Dockerfile
- docker build -t priestine/semantics:${TRAVIS_TAG}-slim - < ./docker/slim.Dockerfile
- docker build -t priestine/semantics:slim - < ./docker/slim.Dockerfile
- docker push priestine/semantics