This repository has been archived by the owner on Oct 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
102 lines (88 loc) · 4.52 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
language: node_js
sudo: required
node_js:
- '4.2'
before_install:
# Global install some npm
- npm install -g grunt-cli
# Install kalabox
- sudo apt-get -y update
- sudo apt-get -y install iptables cgroup-bin bridge-utils curl
- curl -fsSL -o /tmp/kalabox.deb "http://installer.kalabox.io/kalabox-latest-dev.deb"
- sudo dpkg -i /tmp/kalabox.deb
before_script:
# Move our latest app code to teh sysconfroot
- mkdir -p "$HOME/.kalabox/plugins"
- cp -rfa "$TRAVIS_BUILD_DIR/." "$HOME/.kalabox/plugins/kalabox-app-pantheon"
# Nice dev helpers to verify our env
- ./scripts/travis-env.sh
# Sanity checks
- node --version
- npm --version
- grunt --version
- kbox version
- kbox create || true
script:
# Run code tests
- grunt test:code
# Ensure images
# - grunt test:images
# Do the KALABOX_TEST_GROUP
#- grunt test:$KALABOX_TEST_GROUP
before_deploy:
# Assume this is a dev release unless TRAVIS_TAG is defined
- DEV=true
- if [ ! -z "$TRAVIS_TAG" ]; then DEV=false; fi
# Build the release
- mkdir -p release
- grunt pkg --dev=$DEV
# Name the release depending on whether it is an official release or not
- if [ -z "$TRAVIS_TAG" ]; then cp -rf dist/*.zip release/kalabox-app-pantheon-latest.zip; fi
- if [ -z "$TRAVIS_TAG" ]; then cp -rf dist/*.tar.gz release/kalabox-app-pantheon-latest.tar.gz; fi
# Official releases
- if [ ! -z "$TRAVIS_TAG" ]; then cp -rf dist/*.zip release/kalabox-app-pantheon-$TRAVIS_TAG.zip; fi
- if [ ! -z "$TRAVIS_TAG" ]; then cp -rf dist/*.tar.gz release/kalabox-app-pantheon-$TRAVIS_TAG.tar.gz; fi
cache:
directories:
- node_modules
notifications:
irc:
- chat.freenode.net#kalabox
email:
recipients:
on_success: always
env:
global:
- secure: "apZk3xLoCM0pYUDDwVHXgTmSDb5oTwmMbSL8R4JE9/GinNh1Z13pFeJxtn5wwev4IRBOh1L4wBzuDyG0ksuAauVULZHi9C6YeiJSckdOjFHp3lEUHaOepwpfy72zeRaXRA7HhHIiRIgZ/ECPi38cLArPMeImZJBGglh1bgT0XR8SmRIhfRkIdjJdFCGy8ja5L2RXqLU6oLC+WV8M+Psx/p3MNws6vQ9Bj4rJOk+AfTYa7xlgStgujk7uWipOzJoS28dbuX3dTeshQXJSHxUsoW5LjxwHI87JisKQCCvXLrh1C8IIw1ZT4V10PCLCul4zincSS0MjqglqDGLyhdCz3nLhXdNSHFAXdjwNpNtyu1FVDebNi7UFounAJsfJyzaTqO8J+BTdLWd77kCM+R4TUWQigaCrgaxOGTwGQl7pFS+r26KTnUiCdk434qpt7j3oOW6Ee7MREweP22Xkx0tdXRIx6iAPESiTltC/LCOwhVdUPh4oYaLplag1uh9mmbImlZ74goXYZfqrSwAbVbZs2Uz15hhTY8W9eKK+SrjoCN6XCNu0KQR/xTesDm0+cwE/5d6VudHvPGdH/bVpR1b0Ox4+BtE4Yozno3/0KkcWKeuwku1ArfzPB5ptf4K8wYn+HTN+1bqGmdbY3p/7JUWwo8FaJskkF1lcAPQ1tb0G0Do="
- DOCKER_HOST: tcp://10.13.37.100:2375
matrix:
- KALABOX_TEST_GROUP=drupal7
- KALABOX_TEST_GROUP=drupal8
- KALABOX_TEST_GROUP=backdrop
- KALABOX_TEST_GROUP=wordpress
- KALABOX_TEST_GROUP=drush
deploy:
- provider: s3
access_key_id: AKIAILURVAJDJA4ICBPQ
secret_access_key:
secure: Q7deScSi8rAcKfwQbdDF9b3W25Q4rE4ki6BvvVUaSv2hmD+uBsh9c30lqLDtw6lhPOFdihq8sir6eXZY3xJs5IptGKitjCgs2+dxFSCO2n+AlFUB42O3tva57mZ92dZfAyLfIVnbvl37l3mbGMrChFn7yQQJkt14jx3LqSzDEjMROs2j4jVFMGgRhIdHoxKDxPdcqA0+O+9dDH3YEHqEEWmJaHrFhZ3cN8yuKav/T5TBpxA7lg7WeZkMe2wepwrbXyvBE36NKiUYnn0p5hDejC4BttDGQXZvdLVpLFYxEhOJ75RuLpMp4JHtYS4wTfdB39DC0HfVy3cJzzrVSXjosdES+VhV8hqVCyoLoQiVEQmr15CYoLeFBjDb0if+ZvFP7S6kgldYxhVkhL53PuUPpfFlG8Z1SEN+tG1LLp4DTw1YMJzTW5JPIpjHmr2/JazTpIaAJ9hE2NPAAV9oc9w3OXlS+8+Wd2XS7SyN1yH9bOXI6Rws035bRvWW90EGzrfr1RnrIhtEtBCF6w7HH9T0g+vT8ClFb/gpe0TXya8AB1XKOglWY/ltvbqU8zs5rpSqlwRmfxME8cVF35MzmyCJ/P6Od8hmgQwmv27MZqyaSNgK3xtEelgdEulVmzHCTa6G8LcPN2GVjHFKUUDR4iVdVFBnIVEGUBwOo8+CIswrCek=
bucket: apps.kalabox.io
local-dir: release
acl: public_read
region: us-west-2
skip_cleanup: true
on:
repo: kalabox/kalabox-app-pantheon
branch: v2.1
- provider: releases
api_key:
secure: H6PvRUkakbPgEkTQ1qkvfg3anMpAMrgYJSxl6kvARJYMZkLrfJRRSETEEZzyDR1XgPeTnsWV44GY7lTpMcv90iCtpfGh/skzHiUPCt9sgeX6PhdJ8bedI5RlhPqoEEgdxuqohJzbJ8bzTl+ieseEB/MgrsI0SwaI/gBQnRYG9UuQgUnyPQqTLypOaBHuWWncmLP36tTYwQSZn0zZkb3QvdjGVBqsLHDFSAwtzQjVgBL4dvUScS8V1sI5ebnh/mfK9CxN3yrXWCpyj+REYcwW96TjpvRMUvPTsJ2Mx1FSPmUdsupSl4U+TJWB6s9Wn+bd8+Y/6kOZpft1FZ0V9IBXe1ayeX2qkqGIbEY9PdwhVoItKxt5OXPOiHW7YK4hWzjNzdNjNB0Jqwl6EYMN5EsE3Epv0L7j7/N27i3CYdkVfO+wSUTcRwRs23JHz6jUOHRdtw9F+oDztM8C+7yD2pZ6A7ebxljsvkAxCPNVdS645DkYh+WYXz4PKToc0hwG6+zAUXNn2jC6TVqgSfyOgN4PAdfTUPWrSSaPxGq5i6mt4jhVCHCJD7Y91ARYhu3vDb7SEucT5fp39lgw/LCEaGZro9KWv4uJa9eiui1SKUawCRK5mygy6kRYNnoZYYbyPsjqlRehY5XahUbpbt8+WPNXNAAsM/Ub1wIzbC0tqiYyYRA=
file:
- release/kalabox-app-pantheon-$TRAVIS_TAG.tar.gz
- release/kalabox-app-pantheon-$TRAVIS_TAG.zip
skip_cleanup: true
on:
repo: kalabox/kalabox-app-pantheon
tags: true