forked from cloose/CuteMarkEd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 1.72 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
language: cpp
compiler:
- g++
- clang
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test # for g++ 4.8
- sudo add-apt-repository -y ppa:beineri/opt-qt521 # for Qt 5.2
- sudo apt-get update -qq
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-4.8; sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90; fi
- sudo apt-get install -qq qt52base qt52declarative qt52webkit qt52tools libhunspell-dev
- sudo apt-get install -qq libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
before_script:
- source /opt/qt52/bin/qt52-env.sh
- lrelease app/translations/cutemarked_cs.ts -qm app/translations/cutemarked_cs.qm
- lrelease app/translations/cutemarked_de.ts -qm app/translations/cutemarked_de.qm
- lrelease app/translations/cutemarked_el.ts -qm app/translations/cutemarked_el.qm
- lrelease app/translations/cutemarked_es.ts -qm app/translations/cutemarked_es.qm
- lrelease app/translations/cutemarked_fr.ts -qm app/translations/cutemarked_fr.qm
- lrelease app/translations/cutemarked_ja.ts -qm app/translations/cutemarked_ja.qm
- lrelease app/translations/cutemarked_pt_BR.ts -qm app/translations/cutemarked_pt_BR.qm
- lrelease app/translations/cutemarked_ru.ts -qm app/translations/cutemarked_ru.qm
- lrelease app/translations/cutemarked_zh_CN.ts -qm app/translations/cutemarked_zh_CN.qm
script:
- cd 3rdparty/discount && ./configure.sh --with-id-anchor && make && sudo make install ; cd ../..
- cd 3rdparty/hoedown && qmake QMAKE_CC=$CC hoedown.pro && make && sudo make install ; cd ../..
- qmake QMAKE_CXX=$CXX CuteMarkEd.pro "CONFIG += with_hoedown"
- make
- make check
- sudo make install