-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (40 loc) · 2.28 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
37
38
39
40
language: node_js
sudo: false
node_js:
- 10
services:
- mongodb
addons:
hosts:
- dave
install:
- npm install
env:
global:
- NODE_ENV=test
- COMMIT=${TRAVIS_COMMIT::8}
- secure: i+RQZrT6EPZb+0bMI5Eh66H+oBn6Cd8z2eu2Z1C0ZcX31OdF+9LmJg+61+KdoncarrDdNQJnF59GgXDXSiY6ASw/53GAIhwcDFsgR2w9SO/ACogpe4lQflRmIMKtAtLAI0N9IlwnxZF28kgNbePkn46jEBYjcXv8C/PnRMLHC3r9m3jVxgQEakqFRbYBVhbTF4DMuXYdLYzuPrZpmHxJofg21To30BmSza2OJtTYKl7/OpbPqWZ6xnDZXb+bHjYXHyWUq4n103+sXgop+szzOhGYlsUURJBlGTkBOMKOEWEF6SnIy9a19Oj29F8TazrrZ9QWUy47eQuOT0EI2+IksTz5yQ+K7Ht8qZZlDZmHWu8zLcb0h+nilintt8Gl98nyfKt5p+P5WHOjWOUNfrbX1I5FfnZwVqXwyiVDSP9ALdvcwRkj6SaXJrjxOzlXrwxFyRhbkXZv+RpTcET7U64ic+iN+mkkq9hgM1osMmBGa8jLD1qTLf73vAZChOC0kUTnoux+pDcvMBQOedMQfqnF3lPyPOcfbfy5yme2ZUM0InWNQNQSfAzHacOMm2CRPt82NaJImFwIneOlN+ShUb1AMPyJ1XDFXAQOZ2VwFh4IYWUuKHWaWbenmgMHqd7CgTnF2AY5bPc5Ro7bVXCzd57uOxJiSm9HuDizV39xC2ApT1Y=
- secure: APnBYe0sRBlVHjQHWHhUZyJqMmwqFHXpq0jliXWieZHuu/4Q2iOWCYZbf021y1tGl/Nf6XgAr6OJJnq4FyVW9rdd2vR+kgkGXHv7aRqVRVjiT+9+siR54jYBVTL2TeZ28hBjRtKxS6Lq7S6nHwt98VPWkPeoUWWBkhH8p8YRBsaiFh6b6Q0z4/2iMeo5mWlT5Ke1LKRJIIjLkBgkO5n8EpeFTgOgG8UvGb8/akIBynl2jXK0jgKbYdBHq3Qd+voFlpb5qlYN0zqHX1Qtw53CaZGrVLffSFpZaMkOwB1Uu1yudMzOxlgKfjJEgZjYwD7/eOoubUE8SnQ8KJUDVSUb72XEJOR9cOA9lvHA8Lk1mYT7F0dZtHefSiGQhCe9lYs3qIMEa7O71G0L02xey2MVRIz2ZV39IS7Y7RkpAo0jxeUBc9pppVrEFloc9niYA7ah8EA0RPQb5KQxoJZ24EuT5/qpcTge7FOZTtFwL1AmUxJg7iDh2G1VjZxOBIVN+UVazgv+bfp/tUa9/o3pkzSRQulah1Gyf6aDsxcd45W6YuyPFZIwGia8S+72EAdoZ0bWWUY/creqLbDKXaRtIinodvhdbeM5WzDwRzl+juMdqlyi9phQbhA1qFHTPrlPcLuZmwqE0S8kVBtDSDhmTDMLAUHjSW4lSaYdT07NW2Fk2do=
script:
- npm run codecov
after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- export REPO=podshows/podcloud-feeds
- 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 tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
before_deploy:
- openssl aes-256-cbc -K $encrypted_59ebeb376ce5_key -iv $encrypted_59ebeb376ce5_iv
-in .deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
- ssh-keyscan -p4242 barry.podshows.fr >> ~/.ssh/known_hosts
deploy:
- provider: script
script: "./deploy.sh"
on:
branch: master