-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
53 lines (44 loc) · 1.43 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
language: java
branches:
only:
- development
- master
sudo: required
dist: trusty
before_install:
# CommandBox Keys
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622
- sudo echo "deb http://integration.stg.ortussolutions.com/artifacts/debs/noarch /" | sudo tee -a
/etc/apt/sources.list.d/commandbox.list
install:
# MongoDB Manual Install - Travis' is still at 2.6
- sudo apt-get update && sudo apt-get --assume-yes install wget zip unzip commandbox
- wget http://download.redis.io/redis-stable.tar.gz
- tar -xzvf redis-stable.tar.gz
- cd redis-stable && make && make test && sudo make install
- sudo redis-server --daemonize yes
- redis-cli --version
- cd ../
# Test that the box binary is available and ready for our tests
- box version
script:
- sudo ant -DisTravis=true -Dbuild.number=$TRAVIS_BUILD_NUMBER -f workbench/build.xml
before_deploy:
- mkdir s3deploy
- cp -r ./artifacts/cbredis/* ./s3deploy/
- rm -f ./s3deploy/box-repo.json
deploy:
on:
branch:
- master
skip_cleanup: true
provider: s3
#AWS Credentials need to be set in Travis
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_ACCESS_SECRET
bucket: "oss.silowebworks.com"
local-dir: s3deploy
upload-dir: coldbox-modules/cbredis
acl: public_read
after_deploy:
- cd $TRAVIS_BUILD_DIR/build && box forgebox login username=$FORGEBOX_USERNAME password=$FORGEBOX_PASSWORD && box forgebox publish