This repository has been archived by the owner on Sep 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (43 loc) · 1.59 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
matrix:
include:
- language: scala
jdk: openjdk8
scala: 2.12.1
install: true
script:
- sbt universal:packageBin
- mkdir tempreleases
- mkdir releases
- mv target/universal/scripts/bin/main tempreleases/Scalic
- chmod +x tempreleases/Scalic
- tar -zcvf releases/Scalic_Linux.tar.gz tempreleases/Scalic
- mv target/universal/scripts/bin/main.bat tempreleases/Scalic.bat
- zip releases/Scalic_Windows.zip tempreleases/Scalic.bat
- cd releases
- sha256sum Scalic_Linux.tar.gz > Scalic_${TRAVIS_TAG}_checksums.txt
- sha256sum Scalic_Windows.zip >> Scalic_${TRAVIS_TAG}_checksums.txt
- cat Scalic_${TRAVIS_TAG}_checksums.txt
- cd ../..
- tar --exclude='scalic/releases' --exclude='scalic/tempreleases' --exclude='scalic/project' --exclude='scalic/.git' --exclude='scalic/target' -zcvf scalic/releases/Source\ Code.tar.gz scalic
- zip -r scalic/releases/Source\ Code.zip scalic -x scalic/.git scalic/target/ scalic/project scalic/tempreleases scalic/releases
- cd scalic
cache:
directories:
- $HOME/.cache/coursier
- $HOME/.ivy2/cache
- $HOME/.sbt
deploy:
# deploy CLI
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: releases/*
skip_cleanup: true
on:
tags: true
# deploy web API
- provider: heroku
api_key: $HEROKU_PRODUCTION_API_KEY
app: $HEROKU_APP_NAME
notifications:
email: false