-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
30 lines (30 loc) · 1.47 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
dist: trusty
sudo: true
services:
- docker
language: node_js
node_js:
- "9"
cache:
directories:
- node_modules
before_install:
- npm install -g jspm
- npm install -g gulp
install:
- npm install
before_script:
- DOCKER_IMAGE_NAME="q-editor"
- DOCKER_TAG=${TRAVIS_BRANCH//[^a-zA-Z0-9\_\-\.]/_}
script:
- cd client
- npm install
- jspm install
- gulp export
- cd .. ;
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then docker build -t $DOCKER_IMAGE_NAME:$DOCKER_TAG .; fi'
after_success:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then echo $DOCKER_PASSWORD | docker login -u="$DOCKER_USERNAME" --password-stdin; docker tag $DOCKER_IMAGE_NAME:$DOCKER_TAG nzzonline/$DOCKER_IMAGE_NAME:$DOCKER_TAG; docker push nzzonline/$DOCKER_IMAGE_NAME:$DOCKER_TAG; fi'
notifications:
slack:
secure: T+JafZ84LMrfQByeTRX6HeXSgs3QR7gIuY51KjpM0CSX3YoFaM8UJZNYp+JddBn5OViMB7A8UJkZMRm9KMShLuifWFywWF7bKKFTCQjachgj0b81xzvrxepQKZEWy4sZGpGen7ovwyusV72PNmfi4BgY12LnNNSGimnaxAYFgzba3dE95cVbwrMzCd3mG7ygOIlSL/p9wi+eDyrO+EH7lmEBEOR0KKuDuRSwnHl5ZQA9L/wI13b7HZDcyvCSbp0z6WcF/JJyWgSvRTAadJ9DNudBe9z8+avAUXndZaf9okN67bSwHXH3/HoXajAdyLgz60ERwVOIeW7l/N+Lnk7RPEZW71U8M63DysQHJI/yEZ2nUiGLDIZ5nWai6L4qVGuCfKU+nPuLhdZfuH49ycbFztIuahpoIbCfslkgeqY/4HKhaKfVvpmcFNDPcPj/90LbwV170siDUeuRl4Cp3lvk0sb41rpqnhL+pNY++5SrI1jj7bzBPIxzOThUlSVDDHTHuItednc8Cc0vUvEozHu8GmahIzJwh2MbiJY5Kgg2R3a9lqCjLB1wFsOJZrOZSbQru16ruOIDvo8WtdawLznTOQU3RU/1wMzBM+bxGY2Qt+mnPXDfxIxEGBeXlDMJ0PO/eJLfASG7s8UskiSFcLupesMqEzSM5rKyy2IFIDbD/HE=