-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 loc) · 1.56 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
sudo: required
services:
- docker
language: node_js
node_js:
- "lts/*"
- "node"
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
script:
- yarn run lint
- yarn run test -- --maxWorkers=2
jobs:
include:
- stage: coverage
script: yarn run coverage -- --maxWorkers=2 && cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
- stage: docker_build
script: docker build -t $TRAVIS_REPO_SLUG:$TRAVIS_COMMIT -t $TRAVIS_REPO_SLUG:latest .
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push $TRAVIS_REPO_SLUG:latest;
fi
notifications:
slack:
secure: KyHpTTgxrrYSrCq4QO8DNrfnw/Pt0vCT6yA8G3BrgAMsifywRzLl7Z/DCIV1YUDgXL6W+CVQJlz9jp3lzCB8KWHhNTyEnXbKkQK/2hCoWtRfXOFoGtga0mGhF5WhTaiZstgM0oznoqRvSaD1Ge5pL8y3qs18/7N+HDQYjyEVcX1WDSib/febC2FGYDFTvsv6EkDnK5VCFsoe1sTaKuhgsuuvGT4tMlhUd4MmLJJyU7s6IMBCAEEIqrzICJU1lx1Rcmhij97IL2z1+88z5YkLhfdYQJ3WcOwAlJcqX/s4QZqhahupzDt5DpYp+v+kaZrpOkj7JbPPTuU50ZnInYXWzzyx0Now50MvhBvQQ/4mg6HyZawmAOtEGVvuSoTN15qB+8Mtu+M1PoyM3nCaldFt46noKBLxpxuKP92zuXAD1P1OJ5+a8mGuz9lPdeB7l+eT38s6aLWVv9WPx4eOwJ22jXc1WXIZIuRgiGuZdO3/pHsKiDIUgzbopDKBL7IV+DtdCcdi5UMBgARYG0pwOmoShx4CcSDWS26PRLVLKjhjaEBxPWnbRfh9KBgDu9hZ+xgWQn0FiAi799RM3eelKkHOpd5TMf3K7TXSrhvB5ba3hTFiYw6Mq3PB9kWEPU/QOafmMpmaoGBttqijpxCzGM690vRqbvTFlLqXhUfBm/SnCCM=