forked from Sqooba/traildb-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
57 lines (57 loc) · 1.16 KB
/
.travis.yml
File metadata and controls
57 lines (57 loc) · 1.16 KB
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
52
53
54
55
56
57
jobs:
include:
# Run tests on linux
- stage: test
language: java
cache:
directories:
- $HOME/.m2
os:
- linux
sudo: required
before_install:
- ./install.sh
install: true
script:
- mvn clean install
# Run tests on mac and deploy binaries if deployment is enabled.
- stage: test
language: java
os: osx
osx_image: xcode8.3
cache:
directories:
- $HOME/.m2
sudo: required
before_install:
- ./install.sh
install: true
script:
- mvn clean install
deploy:
provider: script
skip_cleanup: true
script: ./upload_mac.sh;
on:
branch: master
tags: true
# Deploy jar with both mac and linux binaries.
- stage: deploy
language: java
cache:
directories:
- $HOME/.m2
os:
- linux
sudo: required
before_install:
- ./install.sh
install: true
script: skip
deploy:
skip_cleanup: true
provider: script
script: ./deploy.sh
on:
branch: master
tags: true