forked from eclipse-vorto/vorto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (57 loc) · 2.16 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
sudo: required
dist: trusty
language: java
services:
- docker
jdk: oraclejdk8
addons:
sonarcloud:
organization: "vorto"
token:
secure: $SONAR_TOKEN
branches:
- development
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
before_install:
- echo "MAVEN_OPTS='-Xms1g -Xmx2g'" > ~/.mavenrc
install:
- git clone https://github.com/digitalcraftsman/hugo-material-docs.git website/themes/hugo-material-docs
- wget https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.deb -O /tmp/hugo.deb && sudo dpkg -i /tmp/hugo.deb
- npm install -g --save remark-cli remark-preset-lint-recommended remark-validate-links remark-lint-no-dead-urls remark-message-control remark-preset-lint-markdown-style-guide remark-lint
- pip install --user awscli
script:
- remark -i .remark_ignore -f -u validate-links .
- remark -i .remark_ignore -u lint-no-dead-urls .
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
mvn --fail-fast -q clean package -DskipTests -P checkstyle;
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -P coverage;
else mvn --fail-fast -q clean package -P checkstyle;
fi
before_deploy:
- export AWS_DEFAULT_REGION=$VORTO_S3_REGION
- export AWS_ACCESS_KEY_ID="$VORTO_AWS_ACCESS_KEY"
- export AWS_SECRET_ACCESS_KEY="$VORTO_AWS_SECRET_KEY"
- export TRAVIS_COMMIT_SHORT=$(git rev-parse --short HEAD)
- export ELASTIC_BEANSTALK_LABEL="${TRAVIS_JOB_NUMBER}_${TRAVIS_COMMIT_SHORT}"
- export ARTIFACT_NAME=infomodelrepository
- export ELASTIC_BEANSTALK_DESCRIPTION="Build-Job ${TRAVIS_JOB_NUMBER} - Git Revision ${TRAVIS_COMMIT_SHORT} ${ARTIFACT_NAME}"
- export GEN_ARTIFACT_NAME=generator-runner-exec
- export ELASTIC_BEANSTALK_DESCRIPTION="Build-Job ${TRAVIS_JOB_NUMBER} - Git Revision ${TRAVIS_COMMIT_SHORT} ${GEN_ARTIFACT_NAME}"
deploy:
- provider: script
script: bash build-scripts/repackage-deploy-repo.sh
skip_cleanup: true
on:
branch:
- development
- master
- provider: script
script: bash build-scripts/repackage-deploy-gen.sh
skip_cleanup: true
on:
branch:
- development
- master