forked from acrylplatform/Acryl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (67 loc) · 4.31 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
59
60
61
62
63
64
65
66
67
language: scala
sudo: false
jdk:
- openjdk8
scala:
- 2.12.8
stages:
- name: test
if: tag IS blank AND branch = "master"
- name: deploy testnet
if: tag IS NOT BLANK
- name: deploy draft-release
if: tag IS NOT blank
jobs:
include:
- stage: test
script:
- unset _JAVA_OPTIONS
- unset SBT_OPTS
- travis_wait 30 sbt -Dquill.macro.log=false -J-Xms3G -J-Xmx3G -J-XX:+UseConcMarkSweepGC
-J-XX:+CMSClassUnloadingEnabled ";checkPR"
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt"
before_cache:
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
- stage: deploy draft-release
script: skip
before_deploy:
- sbt packageAll
deploy:
provider: releases
file_glob: true
file: target/release/*
api_key: $GH_TOKEN
skip_cleanup: true
draft: true
on:
tags: true
- stage: deploy testnet
language: python
install:
- pip install awscli
services:
- docker
script: skip
before_deploy:
- export PATH=$PATH:$HOME/.local/bin
- aws configure set aws_access_key_id $LOGIN
- aws configure set aws_secret_access_key $PASSWORD
- aws configure set default.region eu-central-1
- aws ecr get-login-password | docker login --username AWS --password-stdin $URL
- docker pull 340336286833.dkr.ecr.eu-central-1.amazonaws.com/deploy-tools:latest
deploy:
skip_cleanup: true
on:
tags: true
provider: script
script: bash deploy.sh
env:
global:
- secure: L7l7LBkvdCAURtYvzTMBljGOxUb0Sz1jWG3PqVR3nTJeZK5MvWyLBv5NH1Rp1DkN/4zJGAHXTOCVGW2Z+h/6ZhN7ZxqXjQbJZu5mSHYKLKqouOTA8YBXIa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