Saxum/circle.yml

33 lines
1.1 KiB
YAML
Raw Permalink Normal View History

general:
branches:
only:
- master
machine:
services:
- docker
2014-11-25 20:11:05 +00:00
dependencies:
override:
# Set up dropbox_uploader
- curl "https://raw.githubusercontent.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh" -o dropbox_uploader.sh
- chmod +x dropbox_uploader.sh
2014-11-27 20:38:10 +00:00
- echo $db_uploader > ~/.dropbox_uploader
2014-11-25 20:21:13 +00:00
database:
override:
2014-11-25 20:01:11 +00:00
test:
2014-11-25 21:03:32 +00:00
override:
2015-03-12 15:32:24 +00:00
- docker run -v ~/Saxum:/saxum/saxum -w=/saxum/saxum -u=$(id -u) faerbit/saxum ./package.sh linux
- docker run -v ~/Saxum:/saxum/saxum -w=/saxum/saxum -u=$(id -u) faerbit/saxum ./package.sh windows
- if [ -f Saxum_Windows.zip ]; then cp Saxum_Windows.zip $CIRCLE_ARTIFACTS; fi
- if [ -f Saxum_Linux.zip ]; then cp Saxum_Linux.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:
- if [ -f Saxum_Windows.zip ]; then ./dropbox_uploader.sh -p upload Saxum_Windows.zip /; fi
- if [ -f Saxum_Linux.zip ]; then ./dropbox_uploader.sh -p upload Saxum_Linux.zip /; fi