forked from linkedin/ambry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (56 loc) · 1.84 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
52
53
54
55
56
57
58
language: java
dist: xenial
sudo: required
jdk:
- openjdk11
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
addons:
apt:
packages:
#- oracle-java8-installer
#- oracle-java8-unlimited-jce-policy
services:
- mysql
before_install:
- mysql --version
- wget https://repo.mysql.com//mysql-apt-config_0.8.10-1_all.deb
- sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
- sudo apt-get update -q
- sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server
- sudo systemctl restart mysql
- sudo mysql_upgrade
- mysql --version
- mysql -e 'CREATE DATABASE AccountMetadata;'
- mysql -e 'USE AccountMetadata; SOURCE ./ambry-account/src/main/resources/AccountSchema.ddl;'
- mysql -e 'CREATE DATABASE ambry_container_storage_stats;'
- mysql -e 'USE ambry_container_storage_stats; SOURCE ./ambry-mysql/src/main/resources/AmbryContainerStorageStats.ddl;'
- mysql -e 'CREATE DATABASE AmbryNamedBlobs;'
- mysql -e 'USE AmbryNamedBlobs; SOURCE ./ambry-named-mysql/src/main/resources/NamedBlobsSchema.ddl;'
branches:
except: # don't build tags
- /^v\d/
install: skip # skips unnecessary ./gradlew assemble (https://docs.travis-ci.com/user/job-lifecycle/#skipping-the-installation-phase)
jobs:
include:
- stage: test
name: "Unit Tests excluding ambry-store"
script: ./travis-unit-test.sh
- stage: test
name: "Unit Tests for ambry-store"
script: ./travis-store-test.sh
- stage: test
name: "Integration Tests"
script: ./travis-int-test.sh
- stage: publish
name: "Publish To Bintray"
script: ./travis-publish.sh
stages:
- name: test
- name: publish
if: branch = master and type = push