Skip to content
Snippets Groups Projects
Commit 4ca6ff53 authored by inso's avatar inso
Browse files

Remove one line conditionals

parent e37f0b67
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
[ $TRAVIS_OS_NAME == "osx" ] && zip -r sakia-${TRAVIS_OS_NAME}.zip build/*.dmg
[ $TRAVIS_OS_NAME == "linux" ] && zip -r sakia-${TRAVIS_OS_NAME}.zip build/exe*
if [ $TRAVIS_OS_NAME == "osx" ]
then
zip -r sakia-${TRAVIS_OS_NAME}.zip build/*.dmg
elif [ $TRAVIS_OS_NAME == "linux" ]
then
zip -r sakia-${TRAVIS_OS_NAME}.zip build/exe*
fi
......@@ -28,8 +28,13 @@ pyenv activate sakia-env
if [ $? -ne 0 ]
then
echo "Sakia env cache cleared, rebuilding it..."
[ $TRAVIS_OS_NAME == "osx" ] && env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install $PYENV_PYTHON_VERSION
[ $TRAVIS_OS_NAME == "linux" ] && PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYENV_PYTHON_VERSION
if [ $TRAVIS_OS_NAME == "osx" ]
then
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install $PYENV_PYTHON_VERSION
elif [ $TRAVIS_OS_NAME == "linux" ]
then
PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYENV_PYTHON_VERSION
fi
pyenv shell $PYENV_PYTHON_VERSION
pyenv virtualenv sakia-env
......@@ -50,8 +55,13 @@ then
tar xzf PyQt-gpl-5.5.1.tar.gz
cd PyQt-gpl-5.5.1/
pyenv activate sakia-env
[ $TRAVIS_OS_NAME == "osx" ] && python configure.py --confirm-license
[ $TRAVIS_OS_NAME == "linux" ] && python configure.py --qmake "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" --confirm-license
if [ $TRAVIS_OS_NAME == "osx" ]
then
python configure.py --confirm-license
elif [ $TRAVIS_OS_NAME == "linux" ]
then
python configure.py --qmake "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" --confirm-license
fi
make -j 2 && make install
pyenv rehash
......
......@@ -10,6 +10,11 @@ pip install -r requirements.txt
python gen_resources.py
python gen_translations.py
[ $TRAVIS_OS_NAME == "osx" ] && python setup.py bdist_dmg
[ $TRAVIS_OS_NAME == "linux" ] && python setup.py build
if [ $TRAVIS_OS_NAME == "osx" ]
then
python setup.py bdist_dmg
elif [ $TRAVIS_OS_NAME == "linux" ]
then
python setup.py build
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment