-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
41 lines (36 loc) · 1009 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
35
36
37
38
39
40
41
sudo: required
services:
- docker
env:
DOCKER_COMPOSE_VERSION: 1.8.0
concat_ref: master
language: node_js
node_js:
- "6"
cache:
directories:
- node_modules
notifications:
slack:
on_change: always
email: false
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
- docker pull mediachain/concat-dependencies
- docker pull mhart/alpine-node:6.7
script:
- npm run test && if [ "$SKIP_INTEGRATION_TEST" == "true" ]; then true; else ./integration-test/run-in-docker.sh; fi
after_success: npm run coverage
deploy:
skip_cleanup: true
provider: npm
email: [email protected]
api_key: "$NPM_API_KEY"
on:
tags: true
repo: mediachain/aleph
# only publish if we're on a commit whose tag starts with 'v'
condition: $(git describe --tags) == v*