forked from dkoudela/advanced-ldap-for-crucible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (47 loc) · 2.28 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
language: java
jdk:
# Explicitly declare the right JDK
- oraclejdk8
sudo: required
before_install:
# Install Atlassian SDK
- sudo sh -c 'echo "deb http://sdkrepo.atlassian.com/debian/ stable contrib" >>/etc/apt/sources.list'
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B07804338C015B73
- sudo apt-get update
- sudo apt-get install atlassian-plugin-sdk
# Download dependent jar files which are not available in any Maven repositories
- wget http://davidkoudela.cz/github/advanced-ldap-for-crucible/libs/sqljdbc4.jar -O /tmp/sqljdbc4.jar
- wget http://davidkoudela.cz/github/advanced-ldap-for-crucible/libs/sqljdbc41.jar -O /tmp/sqljdbc41.jar
# Install git-lfs repo and packages for managing large files in GIT
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
- sudo apt-get install git-lfs
install:
# Install dependent jar files which are not available in any Maven repositories
# Must be done via atlas-mvn command line tool
- atlas-mvn install:install-file -Dfile=/tmp/sqljdbc4.jar -Dpackaging=jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0
- atlas-mvn install:install-file -Dfile=/tmp/sqljdbc41.jar -Dpackaging=jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc41 -Dversion=4.1
# Setup the global Git hooks for Git LFS
- git lfs install
script:
# Explicitly switch to the right JDK
- jdk_switcher use oraclejdk8
# Unit tests are part of the Integration tests.
# It is kept only for further test downgrade
# - sudo atlas-unit-test
- sudo atlas-integration-test
after_success:
# Create GIT tag
- git config --global user.email "$CIEMAIL"
- git config --global user.name "Travis CI"
- export GIT_TAG=ci-build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")#$TRAVIS_BUILD_NUMBER
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- git push --quiet https://$GITHUBKEY@github.com/dkoudela/advanced-ldap-for-crucible $GIT_TAG > /dev/null 2>&1
branches:
except:
# Never build a commit after it is labeled by CI to avoid cyclic build dependencies.
- /^ci-build-[0-9]*[0-9a-z\-#]*.*/
cache:
# Caching is not allowed for 'sudo: required' builds.
# It is kept for future usage.
directories:
- $HOME/.m2