This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
54 lines (51 loc) · 1.98 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
language: generic
sudo: true
stages:
- test-ui
addons:
postgresql: '9.6'
env:
global:
- PGPORT=5432
jobs:
include:
- stage: test-ui
name: 'Build, Test and Package UI'
install:
- nvm install 9
language: scala
scala:
- 2.12
jdk: openjdk8
services:
- postgresql
cache:
- sbt
- ivy2
before_script:
- psql -c 'create database archway;' -U postgres
script:
- export ARCHWAY_VERSION=$(date +%Y-%m-%d)-${TRAVIS_COMMIT}
- npm i -g typescript || travis_terminate 1;
- npm i || travis_terminate 1;
- npm run-script prepare || travis_terminate 1;
- npm test
- './flyway/flyway migrate -url="jdbc:postgresql://localhost:5432/archway" -user=postgres -password=postgres'
- ./sbt common/test || travis_terminate 1;
- ./sbt api/test || travis_terminate 1;
- ./sbt provisioning/test || travis_terminate 1;
- './sbt "set every test in assembly := {}" api/assembly'
- './sbt "set every test in assembly := {}" integration-test/assembly'
- ./sbt integration-test/test:package || travis_terminate 1;
- ./sbt common/test:package || travis_terminate 1;
- java -jar ./cloudera-integration/validator.jar -p $TRAVIS_BUILD_DIR/cloudera-integration/parcel/archway-meta/parcel.json || travis_terminate 1;
- java -jar ./cloudera-integration/validator.jar -r $TRAVIS_BUILD_DIR/cloudera-integration/parcel/archway-meta/permissions.json || travis_terminate 1;
- java -jar ./cloudera-integration/validator.jar -s $TRAVIS_BUILD_DIR/cloudera-integration/csd/descriptor/service.sdl || travis_terminate 1;
- echo $ARCHWAY_VERSION
deploy:
skip_cleanup: true
provider: script
script: export ARCHWAY_VERSION=${TRAVIS_TAG} &&./publish.sh parcel archway && ./publish.sh manifest && ./publish.sh csd && ./publish.sh ship
on:
tags: true
all_branches: true