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 1
/
.travis.yml
103 lines (89 loc) · 3.02 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
103
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-php"
# 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-php-latest.zip; fi
- if [ -z "$TRAVIS_TAG" ]; then cp -rf dist/*.tar.gz release/kalabox-app-php-latest.tar.gz; fi
# Official releases
- if [ ! -z "$TRAVIS_TAG" ]; then cp -rf dist/*.zip release/kalabox-app-php-$TRAVIS_TAG.zip; fi
- if [ ! -z "$TRAVIS_TAG" ]; then cp -rf dist/*.tar.gz release/kalabox-app-php-$TRAVIS_TAG.tar.gz; fi
cache:
directories:
- node_modules
notifications:
irc:
- chat.freenode.net#kalabox
email:
recipients:
on_success: always
env:
global:
- secure: QQZ0ayL4Tedql8rpvGkGeyGQT8MFHkhzRYDqI8F5iFVU7RBZEBBeMKrDRb8IJNssOsIodq4KLedIW/FMcs6Uq1Xm8Vhi9TVNqIZMiCYGtU5ByFgoYRUBgInppiz/Km8YoMBXqjUpOqa05zA72J4I6UlAM0KgdDkC9cIkn1tBPj4=
- 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
- KALABOX_TEST_GROUP=backdrush
deploy:
- provider: s3
access_key_id: AKIAJFNVIG2AAFVAN35A
secret_access_key:
secure: c+bYXpw36GEcR8EnCmq5KQcJYoTchJy5VL2L30rjYjpP/gDyAemAq3bGTEW/OfxMdTa36n5rzxclt2icW92P3bEZND6ZEUFTNg+2L6K/BlX1WZ6vJOFrPeYRuvuvsprOdJ2jJE6gPLr0hKzyQ35A7f5FPKV1vtXq0qPWDeCi1tI=
bucket: apps.kalabox.io
local-dir: release
acl: public_read
region: us-west-2
skip_cleanup: true
on:
repo: kalabox/kalabox-app-php
branch: v2.1
- provider: releases
api_key:
secure: goCp85FNFNRiLbYGlcxDXkmx7gUqTWzzMsvkeiFh/QnpDJJvQ86Ql1hKXPB+djHSEPLn7TOFth8Xg1HmvIidGgfvZKexMA8KGwI2sgYJm96DMDxmFkju+94THoXIESxpoBnb1K9I0zkP6GhB1OdNNky5ZTTYMizjB/f8795zRGU=
file:
- release/kalabox-app-php-$TRAVIS_TAG.tar.gz
- release/kalabox-app-php-$TRAVIS_TAG.zip
skip_cleanup: true
on:
repo: kalabox/kalabox-app-php
tags: true