-
Notifications
You must be signed in to change notification settings - Fork 30
/
shippable.yml
48 lines (40 loc) · 1.29 KB
/
shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: python
env:
global:
- DOCKER_REPO=mubench
- DOCKER_ACC=svamann
build:
pre_ci_boot:
image_name: svamann/mubench-ci
image_tag: latest
pull: true
ci:
# mubench.cli
- mvn verify -f mubench.cli/pom.xml
# mubench.utils
- mvn verify -f mubench.utils/pom.xml
# mubench.pipeline
- mkdir -p shippable/testresults
- nosetests -w mubench.pipeline --with-xunit --xunit-file=shippable/testresults/nosetests.xml
- cp mubench.cli/target/DemoDetector.jar detectors/DemoDetector/DemoDetector.jar
- python ./mubench.pipeline/benchmark.py run ex1 DemoDetector --only synthetic_survey
# mubench.reviewsite
- cd mubench.reviewsite
- composer install --no-interaction
- mkdir -p upload
- mkdir -p logs
- cp settings.default.php settings.php
- touch test.sqlite
- java -jar /usr/local/bin/selenium-server-standalone-3.12.0.jar &
- php -S localhost:8080 -t ./ &
- sleep 10
- phpunit --testsuite unit_tests
- phpunit --testsuite integration_tests
- cd ..
on_success:
# build and deploy Docker image, if this is a regular build on master
- if [ $PULL_REQUEST == false ] && [ "$BRANCH" == "master" ]; then ./deploy $DOCKER_ACC/$DOCKER_REPO latest; fi
integrations:
hub:
- integrationName: dockerhub_svamann
type: dockerRegistryLogin