2014-11-25 21:06:55 +00:00
|
|
|
general:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2014-11-25 20:11:05 +00:00
|
|
|
dependencies:
|
2014-11-25 20:10:18 +00:00
|
|
|
override:
|
2014-11-26 22:44:09 +00:00
|
|
|
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
2014-11-25 20:10:18 +00:00
|
|
|
- sudo add-apt-repository ppa:kalakris/cmake -y
|
2014-11-26 22:44:09 +00:00
|
|
|
- sudo add-apt-repository ppa:tkelman/mingw-backport -y
|
2014-11-26 23:16:17 +00:00
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get install gcc-mingw-w64
|
|
|
|
- sudo apt-get install cmake
|
|
|
|
- sudo apt-get install g++-4.8
|
2014-11-26 22:44:09 +00:00
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
|
2014-11-26 23:16:17 +00:00
|
|
|
- sudo apt-get install xorg-dev
|
2014-11-25 20:21:13 +00:00
|
|
|
- sudo apt-get install ninja-build
|
2014-11-25 21:03:32 +00:00
|
|
|
# Install megacmd
|
|
|
|
- git clone https://github.com/t3rm1n4l/megacmd.git
|
|
|
|
- cd megacmd; make
|
|
|
|
- sudo cp megacmd/megacmd /usr/local/bin
|
|
|
|
- echo $megacmd > ~/.megacmd.json
|
2014-11-25 20:21:13 +00:00
|
|
|
|
|
|
|
database:
|
|
|
|
override:
|
2014-11-25 20:10:18 +00:00
|
|
|
|
2014-11-25 20:01:11 +00:00
|
|
|
test:
|
2014-11-25 21:03:32 +00:00
|
|
|
override:
|
2014-11-25 23:43:52 +00:00
|
|
|
- ./package.sh linux
|
2014-11-26 22:49:40 +00:00
|
|
|
- ./package.sh windows
|
2014-11-26 23:14:56 +00:00
|
|
|
- cp MarbleGame_Linux.zip $CIRCLE_ARTIFACTS
|
2014-11-26 23:40:46 +00:00
|
|
|
- if [ $(ls MarbleGame_Windows.zip 2> /dev/null) ]; then cp MarbleGame_Windows.zip $CIRCLE_ARTIFACTS; fi
|
2014-11-25 21:03:32 +00:00
|
|
|
|
|
|
|
deployment:
|
2014-11-25 21:08:51 +00:00
|
|
|
master:
|
|
|
|
branch: master
|
2014-11-25 21:07:28 +00:00
|
|
|
commands:
|
2014-11-26 23:41:21 +00:00
|
|
|
- if [ $(ls MarbleGame_Windows.zip) ];then megacmd -force put MarbleGame_Windows.zip mega:/GameBuilds/; fi
|
2014-11-25 23:43:52 +00:00
|
|
|
- megacmd -force put MarbleGame_Linux.zip mega:/GameBuilds/
|