-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
24 lines (24 loc) · 2.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
language: node_js
node_js:
- 8
cache:
directories:
- node_modules
script:
- npm run lint
- npm run test
- npm run build
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- secure: Q065NkIBxBacxf4fV2LIUgHUQk+Xao6EUh+iSyxUlgc+JMFT2eRPtIt62a+JuYDt6Kf2LyVYMYFJmrBo846D9pz6BYF3DL+xkqRVqeZHWiMXDGduvwlLAfB4eayhfuQGvUkOV4yw5c+Tot62eBeA2TLnL2PYNF4FM7Z+HPavTKMrly9RsQX3W25dZZatN1L2sLj4+ZaL7i/FNukltMV5UgFuYlH7aUlnA6f1de8tYfrKLeMtxqffW/lWaLwfDKf1VwlfHOXwvBsFgNAVjoVvhOQAYnaFEHPGLMzlQQ9OI9o5Xygs5LAU4tjWQ3BZ1F6lY+6Zz35W2z+0PmNJyFm7ksgUcElUpDPje5KBilnhNvkAF3Dl9TorL20rLQWDiLRnvxYXVf80ajVWaboss4IXZ5Dqx/AxDnIY06fHBTo/i2eJTFwUsJedpHf2yRgGLTh/GgYKvFA4vlozfIZJZy9T4Qy2WZNfISS61k9PpKktjMjBTx/+aBPlB8EPgIUYJ69PYQ2tzC5PX1MjcMoxBjjjZa4cu6EY8TRnQ+14Bo6hb+9dRrlX4IYDb/yj3cDTBq5I6aReUE9Dy/qi0xoPBmdxnxtRr2cM1aM1KKK0xAv5mrBwqCaPlRVJ4+R3t5IwEbMNc4FcPLsIosUlbqazAsl5I85U8NF0GrWM5oNDb7/RM94= #DOCKER_USER
- secure: OWXL/JZOBYnHBPL+eGqcMJTwuP+k+/5cRjRKU9YvwP/CZ3bIpl7oudo/VKHEfZUOoUjP/tzE2QRoUcUx6GtbFNF7wSi1XQfAozjUfK2xlAc3vBo9xE25UwyhoYYCCJYytT6fEomWSmU0EvxLURx947Flpiap2wx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Xm+SKuHCN1YOcwsA+1u8Ttxda62/+X+GRODb/E2AN3AyGWpneXyiPbA1Vy0SXGir184sWBnKVu4TLzwqtIIilYSgE0AqE126OLPZTQLGFv9AkrDUyoTsWVMTFt8j6zC3HUGyefshqip3Lks= #DOCKER_EMAIL
after_success:
- export REPO=callthemonline/simple-client-react
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH
; fi`
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push $REPO