Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
45 lines (36 loc) · 1.41 KB

File metadata and controls

executable file
·
45 lines (36 loc) · 1.41 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!/bin/bash -ex
case "$1" in
pre_machine)
# copy certificates to default directory ~/.docker
mkdir .docker
cp $CIRCLE_PROJECT_REPONAME/etc/certs/* .docker
# configure docker daemon to use SSL and provide the path to the certificates
docker_opts='DOCKER_OPTS="$DOCKER_OPTS -H tcp://127.0.0.1:2376 --tlsverify --tlscacert='$HOME'/.docker/ca.pem --tlscert='$HOME'/.docker/server-cert.pem --tlskey='$HOME'/.docker/server-key.pem"'
sudo sh -c "echo '$docker_opts' >> /etc/default/docker"
# debug output
cat /etc/default/docker
ls -la $HOME/.docker
;;
post_machine)
# fix permissions on docker.log so it can be collected as an artifact
sudo chown ubuntu:ubuntu /var/log/upstart/docker.log
# validate that docker is working
docker version
;;
dependencies)
mvn clean install -T 2 -Dmaven.javadoc.skip=true -DskipTests=true -B -V
;;
test)
mvn clean verify
;;
collect_artifacts)
# collect artifacts into the artifacts dir
cp target/*.jar $CIRCLE_ARTIFACTS
;;
collect_test_reports)
mkdir -p $CIRCLE_TEST_REPORTS/surefire
mkdir -p $CIRCLE_TEST_REPORTS/failsafe
cp target/surefire-reports/TEST-*.xml $CIRCLE_TEST_REPORTS/surefire
cp target/failsafe-reports/TEST-*.xml $CIRCLE_TEST_REPORTS/failsafe
;;
esac
Morty Proxy This is a proxified and sanitized view of the page, visit original site.