-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
23 lines (23 loc) · 1.3 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
language: node_js
node_js: '10.3.0'
sudo: required
services:
- docker
cache:
directories:
- $HOME/build/JincorTech/backend-token-wallets/node_modules
- $HOME/.npm
- node_modules
install:
- npm install
- docker-compose -f docker-compose.test.yml build --no-cache api
script:
- docker-compose -f docker-compose.test.yml run --rm api sh -c "npm run test:cover"
- npm run build
- chmod ugo+x ./build.sh
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "prod"; elif [ "$TRAVIS_BRANCH"
== "develop" ]; then echo "stage"; else echo "dev-$(git rev-parse --short HEAD)"; fi`
- "./build.sh $TAG"
notifications:
slack:
secure: GVCcLWm0I+h0XXppj7PW197wR5zcg+2jN3PBq4Pxq3XaNHLwMKClNmzfXfU0FqbXzj2VJwyny0tL5/rk8rOjaI26n2wc+ALzCr4p2nCP0f+zNezpOEvLkUbIhZFHyZNZzg4m2zIkm1b3sfEX/gPetCGhrtq09Ke8+BS749U9nc2ysHZ3Fr9coTMeogq5AiHfWQxjBuwMZoedgaSs3mK+fR9+fHGbytocLsk2NrpukDNpyq8egzD5nam7D0wGN8GRfBPtRMP4bWUhnqozNl4XRC7dAm+rFiCKP2pYbckDhdNdaYBjAXBLmnsvG5I4xVT9gRZ37PWJr3HNIzNARwQnqKr9tD4zbuvK1JmdClu0naMK/hvhQhuTM7K9A7sJ1xRCad6umenSOAaiBwSU1HkLWmQT/jrc6Vii6dhaEryi/kLsCAo3Cw3avA7QiGmkLEh7mXazCiOX8KHXb0O74K+SczS1wlncK1HdtZI9osriE2YtCk7EL1aTdnvVzdazDdAEW202fAEEDG42/5XfUy4X880Tx8Zf1zJSOYiESiv6Mv83GSCX5M5aU3AYd2nYPTTNq1scIenUtA14fRWTotun56+FOLwfWKqdJjRA3PQv7TDtF3Dkzlzc/pQtbAb0MKV1FFXK1fdekvGq2YAM5JfUEtYIJivIJWCSyLt2hGiINgs=