-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
22 lines (22 loc) · 955 Bytes
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: 0.2
phases:
install:
runtime-versions:
java: corretto17
commands:
- echo "installing sbt"
- sudo apt-get update
- sudo apt-get install apt-transport-https curl gnupg -yqq
- echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
- echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
- curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import
- sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg
- sudo apt-get update
- sudo apt-get install sbt
build:
commands:
- echo Build started on `date`
- sbt clean test # generate build
post_build:
commands:
- echo "build completed"