Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (51 sloc) 1.98 KB
sudo: required
dist: trusty
language: python
python:
- "3.5"
env:
- secure: "Hl7Mg82Li3e+rPRsll4dH1HgLvJKtJH2RASi/qX/lGsMALzsROJDYTJoTa2LHsFM46bbX+hp2zVCUs6o++S4sRTvOk50YnJUN0b3eqN/FmUbLs5ba7Y49QAoxbTduShTKxtmrkA3wizqTIS/TSCwrjtlt4Io/9PKz3g1Y+1SSDI="
cache:
- pip
before_install:
- sudo apt-get update
- sudo apt-get install ditaa parallel graphviz
- ditaa -h || true
install:
- sudo pip install pelican jinja2 py3babel babel beautifulsoup4 markdown
- wget "http://downloads.sourceforge.net/project/plantuml/plantuml.jar?r=&ts=1424308684&use_mirror=jaist" -O plantuml.jar
- sudo mkdir -p /opt/plantuml
- sudo cp plantuml.jar /opt/plantuml
- echo "#! /bin/sh" > plantuml
- echo 'exec java -jar /opt/plantuml/plantuml.jar "$@"' >> plantuml
- sudo install -m 755 -D plantuml /usr/bin/plantuml
- plantuml -version
- git clone --depth 1 https://github.com/farseerfc/opencc-bin opencc-bin
- cd opencc-bin
- sudo install -t /usr/bin src/opencc
- sudo install -t /usr/lib src/libopencc.so
- sudo install -t /usr/lib src/libopencc.so.1.0.0
- sudo install -t /usr/lib src/libopencc.so.2
- sudo mkdir -p /usr/share/opencc
- sudo cp data/*.ocd /usr/share/opencc/
- cd ..
- opencc --version
- sudo locale-gen zh_CN.UTF-8
- sudo locale-gen zh_HK.UTF-8
- sudo locale-gen en_US.UTF-8
- sudo locale-gen ja_JP.UTF-8
- locale -a
- pelican --version
script:
- git config --global user.email "$GIT_EMAIL"
- git config --global user.name "$GIT_NAME"
- git config --global push.default simple
- git clone --depth 1 https://github.com/farseerfc/pelican-plugins plugins
- git clone --depth 1 https://github.com/farseerfc/pelican-bootstrap3 theme
- git clone --depth 1 https://$GH_TOKEN@github.com/farseerfc/farseerfc.github.io output
- env SITEURL="farseerfc.me" make publish
after_success:
- cd output
- git add -A .
- git commit -m "update from travis"
- git push --quiet