forked from lucee/Lucee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (53 loc) · 2.33 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
65
66
67
68
language: java
jdk:
- oraclejdk8
# build only commits to branch master or where pattern matches "n.n" (where n is a number), e.g. 5.2
branches:
only:
- master
- /^\d+(\.\d+)+$/
#os:
# - linux
# - osx
# copy the settings.xml for maven from the "travis" branch
before_install:
# - "git clone -b travis `git config --get remote.origin.url` target/travis"
### for more see https://docs.travis-ci.com/user/database-setup
services:
- mysql # server:"127.0.0.1"; user:"root"; password:""
- postgresql "9.6" # server:"127.0.0.1"; user:"postgres"; password:""
- mongodb # server:"127.0.0.1" user/pass see below
- memcached # Memcached uses the default configuration and binds to localhost.
before_script:
- mysql -e "CREATE DATABASE IF NOT EXISTS testdb;" -uroot
- psql -c 'CREATE DATABASE testdb;' -U postgres
### enable the below only if authentication is implemented in MongoDB extension
# - sleep 15 # necessary for the mongodb because it does not accept connections immediately
# - mongo testdb --eval "printjson(db.version())"
# - mongo testdb --eval 'db.createUser({user:"travis", pwd:"testpw", roles:["readWrite"]});'
# - mongo testdb --eval 'db.auth({user:"travis", pwd:"testpw"})'
script:
# maven deploy process (builds lucee and deploys to sonatype)
- mvn -e -f loader/pom.xml clean deploy --settings travis-settings.xml #target/travis/settings.xml
############ increment maven version (not working) ###########
# - mvn --batch-mode -f loader/pom.xml release:update-versions
# - git config --global user.email "${GIT_EMAIL}"
# - git config --global user.name "${GIT_USERNAME}"
# - git config --global user.password "${GIT_PASSWORD}"
# - git add -f loader/pom.xml # add the updated pom
# - git commit -m "update maven version"
# - git remote -v
# - git remote set-url origin https://github.com/lucee/Lucee.git
# - git push origin master
#deploy:
# skip_cleanup: true
notifications:
slack: luceeserver:ZTfbu4bVSLFmakRcLInrNZIT
email:
after_success:
# - version=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | egrep -v '^\[|Downloading:' | tr -d ' \n')
- curl "http://stable.lucee.org/rest/update/provider/buildLatest"
- curl "http://download.lucee.org/?reset=1"
#- git commit -a -m "Committed by Travis-CI build number: $TRAVIS_JOB_ID "