replace buildhive rule with circleci, configure circleci to call the rule for test

master
melvinzhang 2015-09-30 20:29:54 +08:00
parent 09e6d44a37
commit 1d03c79908
2 changed files with 11 additions and 2 deletions

View File

@ -186,12 +186,13 @@ log.clean:
inf: $(MAG)
-while true; do make debug=true 0`date +%s`.t; done
buildhive:
circleci:
$(eval MAG_ID := $(shell date +%s))
make clean games=100 ai1=MMABC ai2=MCTS ${MAG_ID}.t || (cat ${MAG_ID}.out && false)
make clean games=3 ai1=MMABC ai2=MCTS ${MAG_ID}.t || (cat ${MAG_ID}.out && false)
touch cards/standard_all.out cards/modern_all.out
touch cards/standard_all.txt cards/modern_all.txt
make zips
mv release/Magarena.jar *.zip ${CIRCLE_ARTIFACTS}
test-self-play:
for i in `seq 1 10`; do tsp make games=100 ai1=MMABC ai2=MCTS flags=-ea `date +%N`.t; done

8
circle.yml Normal file
View File

@ -0,0 +1,8 @@
machine:
java:
version: oraclejdk8
test:
override:
- make circleci:
timeout: 7200