Prepare travis environment:

*   configure maven
*   configure ssh key
*   configure gpg key
This commit is contained in:
Andreas Dangel
2017-02-24 20:01:41 +01:00
parent 32a56fd155
commit a37381e756
4 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,14 @@ before_install:
- echo "MAVEN_OPTS='-Xms1g -Xmx1g'" > "$HOME/.mavenrc" - echo "MAVEN_OPTS='-Xms1g -Xmx1g'" > "$HOME/.mavenrc"
- mkdir -p "$HOME/.m2" - mkdir -p "$HOME/.m2"
- cp .travis/travis-toolchains.xml "$HOME/.m2/toolchains.xml" - cp .travis/travis-toolchains.xml "$HOME/.m2/toolchains.xml"
- cp .travis/travis-settings.xml "$HOME/.m2/settings.xml"
- mkdir -p "$HOME/.ssh"
- chmod 700 "$HOME/.ssh"
- openssl aes-256-cbc -K $encrypted_c422865a395e_key -iv $encrypted_c422865a395e_iv -in .travis/id_rsa.enc -out "$HOME/.ssh/id_rsa" -d
- chmod 600 "$HOME/.ssh/id_rsa"
- mkdir -p "$HOME/.gpg"
- openssl aes-256-cbc -K $encrypted_c422865a395e_key -iv $encrypted_c422865a395e_iv -in .travis/release-signing-key-82DE7BE82166E84E.gpg.enc -out .travis/release-signing-key-82DE7BE82166E84E.gpg -d
- gpg2 --batch --import .travis/release-signing-key-82DE7BE82166E84E.gpg
install: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V install: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
before_script: before_script:
- SHOULD_DEPLOY=no - SHOULD_DEPLOY=no

BIN
.travis/id_rsa.enc Normal file

Binary file not shown.

1
.travis/id_rsa.pub Normal file
View File

@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8yHVLHYDsKui8tYg/sFvkDqcs97pEZz0BzK9HtBF4O+/It1drRYRdUAFfjoImfprpKSxkJCTglHixGRp24eNaZ6woWVJ4/bmiMkEqEZAjr1NZ3qw7zIruMJMSkCV+YTtmL4cYcZlvMRPzzOZOnFbV05oi79oy41MUFHYjolK9QxMFNsVNN5iyzFxM3HqSFozz+ylKbFBtDk6ZHZQNRL/Xl2V9DJ69fVzjG4OZfcWNGmmKHHARmsnJyUOMeeKpLjDOe1M6ZdI8HkXWac8yCr9JTETNZZwemZAcS/RKoKCDqfIUOzkZfIPmyaznfVetTGsMi7yQrJhAyjznuNGF4+3lfgTcmRF8wz5FCeUkdYTmy2wNSFi5HiLPfC5OgRtjKzC6yb8rbRjDx6XQ2ph15PKOaXwzk49TaMc0xJvoiGDMZaTU0iTm3Y1/QUtfLvo3/jGMbtUdV3soWpuBAV2JUI4aB5xdLX9iNmcrVzoUe3y9DWuuTX46eoCvpUNXv/DXKhQw1D7xd7J67db5qUck/Akiqi0JR+e0SoBJvZFtYwVNLGC2bIJ/s8SR8X5Zp+1+ypf3WYjIylxQTkO1r4NfI0Cd9qXg7nmUrHAU7Z6xtJmUK8ZWzSST4wul8WkRJURtODLxt5firtlKhyZ93t9Mjuk6mATIPxr/b3x20T+IH463kw== ssh key for pmd. used for travis accessing sourceforge and github.

Binary file not shown.