This repository has been archived by the owner on Apr 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
/
.travis.yml
33 lines (26 loc) · 2.91 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
language: python
python:
- "2.7"
env:
global:
- secure: "WvexIfR2nvMn77kHv4PVTiXBC9U8YkpcCbPPHr3/HWWU29t9dxerOgfNIfO0LgPYhV2yb9NJ8sLBW6/8Vs/DS8gSVnsn/IBwQXDwwcgymzkNYampq59do/56FxwFzvSk0DqJbNkmNjLzzJsdTR5mK6weN0fT50h76eUkGuLoZKM="
- secure: "cua8Ei2rrCZBjv/7sXRcizHS3UBOQ6v1OrzOTlWuwGN7jpQQS+W/gbMnsteBh4SLnXziVzsefrcy+z4iyMnGViyXZ0InfZ82BEe/Tuu2zY8lCPMvGomNv0OUXYzMBTbf/QPNe7GezoatIrL/4Qu8/GHuOYA/I39ZDxU1iDVn9tc="
sudo: required
before_install:
- nvm install 7.4
install:
- sudo apt-get update
- sudo apt-get install sshpass
- sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
script:
- make deploy
after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "3.5" -o $TRAVIS_BRANCH == "4.4" && sshpass -p $SCP_PASSWORD rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./manual/_book/* [email protected]:/home/$SCP_USER/public/books/manual/$TRAVIS_BRANCH/
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "3.5" && sshpass -p $SCP_PASSWORD rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./manual_en.pdf [email protected]:/home/$SCP_USER/public/books/contao-manual-$TRAVIS_BRANCH.pdf
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "3.5" && sshpass -p $SCP_PASSWORD rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./manual_de.pdf [email protected]:/home/$SCP_USER/public/books/contao-handbuch-$TRAVIS_BRANCH.pdf
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "3.5" && sshpass -p $SCP_PASSWORD rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./manual_fr.pdf [email protected]:/home/$SCP_USER/public/books/contao-manuel-$TRAVIS_BRANCH.pdf
- test $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "master" && sshpass -p $SCP_PASSWORD rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./manual/_book/* [email protected]:/home/$SCP_USER/public/books/manual/current/
- test $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "master" && sshpass -p $SCP_PASSWORD rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./cookbook/_book/* [email protected]:/home/$SCP_USER/public/books/cookbook/
- test $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "master" && sshpass -p $SCP_PASSWORD rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./api/_book/* [email protected]:/home/$SCP_USER/public/books/api/
- test $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "master" && sshpass -p $SCP_PASSWORD rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./extending-contao4/_book/* [email protected]:/home/$SCP_USER/public/books/extending-contao4/
- test $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "master" && sshpass -p $SCP_PASSWORD rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./manager/_book/* [email protected]:/home/$SCP_USER/public/books/manager/