-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildspec-test.yml
33 lines (31 loc) · 984 Bytes
/
buildspec-test.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
version: 0.2
phases:
install:
commands:
- apt-get update
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
- apt-get update
- apt-get install -y google-chrome-stable chromium-chromedriver
pre_build:
commands:
- . ./mu-env.sh
build:
commands:
- >
mvn -f KarmaBDD/pom.xml verify
-Dserver.port=443
-Dserver.host=${BASE_URL}
-Dapplication.base=/api/
-Dchrome.switches='--headless --no-sandbox'
-Dwebdriver.base.url=${BASE_URL}/
-Dwebdriver.chrome.driver=/usr/lib/chromium-browser/chromedriver
post_build:
commands:
- aws s3 sync --delete KarmaBDD/target/site/serenity/ s3://stanfield-systems-karma-ci/karma-angular
artifacts:
files:
- '**/*'
cache:
paths:
- '/root/.m2/**/*'