-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
25 lines (24 loc) · 2.82 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
env:
global:
- secure: "OYCxQIBeCXoDDFEZWJtT2Q0zdGT9C3Z4q7zEKksQOoI28bGrjuvq5hlkHEK44OoRxw5z7olSFPuvsRbGMTeLJOu7stkd9PvhSMAxfTMs3EtSIgRmdEIvBotpJF2di2inyFQC5voc99m/93kT5sJfzRPj6ltPsujhNbc7ybvBncKb/kEiogwUpH5MO2OTJ2BMCBI7ZgWGKhSiCiCkPGeD5YDDEVM9TUnOZFfcDPDe+R/xZNWvj378KvbwOC/SHGKQ3LckacnwH6cf2ok2dA6GlYiAuDKb+BAKO5lc+Cb0uA78LqpSX03tbSkqTt8LAiv8YWA2iKaS7wymelfDFidkBCDFt3ZE3zViUAfgL9YJBeIXXbntoK+elc3p7SSoNTe4SkgRLLczhIh8M1uWRn3AJRZBdW0lO8dY2heo9KqDua5LGQIko0KD6+2JfaiIsbr4eAOHN9hfaBNXF0DhhEjMXlYKWAzaUvILNSl6xEyTQQCV9UmmsZlt3mwlKeD/psrVLk9V55hkXCnr67KwNYyeIYIHIwHH8PVvFFahLnkjUmhuV01hMKu4BPDC9uPB8todSFkicN15AXKw5GKpDZlo49IO+/fMP0CzV1/gKPppq8eAVto4dWI+itNU8i5+lsulfKp8GHfDOnABQqVpqhbZIxa6+X8x9SmYoTN9UtWu5dU="
- GIT_DEPLOY_DIR=public
- GIT_DEPLOY_BRANCH=master
- GIT_DEPLOY_USERNAME="Travis CI"
- GIT_DEPLOY_EMAIL=vicluo96@gmail.com
- secure: "KWDHzR5Ni6C2kr0KjqWak75WqCSBD7OidVfghGeIf3dfSscmO1Hmryfz18CF1tijX3o2mOVWRdyXNq9eILon34ZeP0qt0mYIAm0yBp8sAR72WR4MhYdBlffFCIDyEDyRIbUGdtm1fA/2ChqhbUtPiJO83SKMwJ9uXXLwayu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ojPGuYP/aRMozVdpkdiLIqEQrujUsOCy2tg8NKzxOSs5e593P8vHt/WJPGhpN5pUGqSancFJLMpE5vlvab6I+AWiCJIopIuUHMS016BLXBVT20G2aDxKLoh2I/ax8KZkbIuY="
branches:
only:
- master
install:
- rm -rf public || exit 0
- wget -O hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.83.1/hugo_0.83.1_Linux-64bit.tar.gz && tar xzf hugo.tar.gz
script:
- ./hugo -v
after_success:
- sudo apt-get update && sudo apt-get install -yy python-pip python-dev build-essential && sudo pip install pyopenssl ndg-httpsclient pyasn1 coscmd
- coscmd config -a "$TCLOUD_API_ID" -s "$TCLOUD_API_KEY" -b sjtug-portal-1251836446 -r ap-chengdu -m 32 && cd public && coscmd upload -rs . /
- cd ..
- cp .travis.yml public
- echo 'sjtug.org' > public/CNAME
- bash deploy.sh