forked from collet/4A_ISA_TheCookieFactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (39 loc) · 1.36 KB
/
.travis.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
49
50
51
##
# Travis configuration file for TCF (author: sebastien mosser)
##
language: java # Java is the main language for this project
jdk: # Running using Oracle JDK 8
- oraclejdk8
dist: trusty # fix issues on updated default Ubuntu distro used by Travis
sudo: required # Mandatory to run docker
services: # Activating Docker support for this build
- docker
cache: # Caching maven local repository to speedup builds
directories:
- $HOME/.m2
before_install: # Updating APT package list
- sudo apt-get update -qq
install: # Installing .Net environment using Mono
- sudo apt-get install -qq mono-complete
script: # Building the 3 sub-projects
- cd client; mvn -q clean install
- cd ../dotNet; ./compile.sh
- cd ../j2e; mvn -q clean package
- cd ..
after_success: # Running integration tests
- cd dotNet
- nohup mono server.exe /standalone &
- cd ../j2e
- mvn package -Dtest=PaymentIntegrationTest
- cd .. ; rm dotNet/server.LOCK
after_script: # Building and then pushing Docker images
- cd docker
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- cd client ; ./build.sh ; ./publish.sh
- cd ../partners ; ./build.sh ; ./publish.sh
- cd ../tcf ; ./build.sh ; ./publish.sh
- cd ..
notifications: # Using email-based notifications
email:
recipients: