Saxum/circle.yml

33 lines
843 B
YAML

general:
branches:
only:
- master
machine:
services:
- docker
dependencies:
override:
# 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:
- docker run -v ~/swp:/swp/swp -w=/swp/swp -u=$(id -u) faerbit/swp ./package.sh linux
- docker run -v ~/swp:/swp/swp -w=/swp/swp -u=$(id -u) faerbit/swp ./package.sh windows
- cp MarbleGame_Windows.zip MarbleGame_Linux.zip $CIRCLE_ARTIFACTS
deployment:
master:
branch: master
commands:
- megacmd sync MarbleGame_Windows.zip mega:/GameBuilds/
- megacmd sync MarbleGame_Linux.zip mega:/GameBuilds/