Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from ryandoyle/docker-ci
build: use docker for CI build
- Loading branch information
Showing
2 changed files
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Add extras missing in the docker image | ||
apt-get -qq update | ||
apt-get install -y apt-transport-https | ||
|
||
# Setup PCP | ||
wget -qO - https://bintray.com/user/downloadSubjectPublicKey?username=pcp | apt-key add - | ||
echo "deb https://dl.bintray.com/pcp/stretch stretch main" >> /etc/apt/sources.list | ||
apt-get -qq update | ||
apt-get install -y pcp pcp-gui | ||
touch /var/lib/pcp/pmdas/mmv/.NeedInstall | ||
/etc/init.d/pmcd start | ||
|
||
# Run maven | ||
cd /parfait | ||
mvn -B -V clean install verify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
language: java | ||
language: bash | ||
|
||
dist: trusty | ||
sudo: required | ||
services: | ||
- docker | ||
|
||
before_install: | ||
- wget -qO - https://bintray.com/user/downloadSubjectPublicKey?username=pcp | sudo apt-key add - | ||
- echo "deb https://dl.bintray.com/pcp/trusty trusty main" | sudo tee -a /etc/apt/sources.list | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y pcp pcp-gui | ||
- sudo touch /var/lib/pcp/pmdas/mmv/.NeedInstall | ||
- sudo service pcp restart | ||
|
||
script: mvn -B -V clean install verify | ||
script: docker run -ti -v `pwd`:/parfait maven:3-jdk-8 /parfait/.ci.sh |