-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (48 loc) · 1.37 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: node_js
os:
- linux
env:
global:
- DOCKER_COMPOSE_VERSION=1.25.1
jobs:
include:
- stage: Testing (node 12)
node_js: 12
if: type = pull_request
before_script:
- yarn lint
- yarn build
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- yarn
script:
- docker-compose up -d
- yarn test
- stage: Testing (node 10)
node_js: 10
if: type = pull_request
before_script:
- yarn lint
- yarn build
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- yarn
script:
- docker-compose up -d
- yarn test
- stage: release
node_js: 12
if: branch = master AND type = push
script: skip
deploy:
provider: script
cleanup: true
script: yarn && yarn build && yarn semantic-release