Saxum/circle.yml
2014-11-27 00:32:44 +01:00

39 lines
1.3 KiB
YAML

general:
branches:
only:
- master
dependencies:
override:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo add-apt-repository ppa:kalakris/cmake -y
- sudo add-apt-repository ppa:tkelman/mingw-backport -y
- sudo apt-get update
- sudo apt-get install gcc-mingw-w64
- sudo apt-get install cmake
- sudo apt-get install g++-4.8
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- sudo apt-get install xorg-dev
- sudo apt-get install ninja-build
# Install megacmd
- git clone https://github.com/t3rm1n4l/megacmd.git
- cd megacmd; make
- sudo cp megacmd/megacmd /usr/local/bin
- echo $megacmd > ~/.megacmd.json
database:
override:
test:
override:
- ./package.sh linux
- ./package.sh windows
- cp MarbleGame_Linux.zip $CIRCLE_ARTIFACTS
- if [ $(ls MarbleGame_Windows.zip 2> /dev/null) ]; then; cp MarbleGame_Windows.zip $CIRCLE_ARTIFACTS; fi
deployment:
master:
branch: master
commands:
- if [ $(ls MarbleGame_Windows.zip) ];then; megacmd -force put MarbleGame_Windows.zip mega:/GameBuilds/; fi
- megacmd -force put MarbleGame_Linux.zip mega:/GameBuilds/