forked from pagemachine/hairu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (35 loc) · 1.04 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
language: php
php:
- 5.3
- 5.5
- 5.6
- 7.0
sudo: false
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
before_script:
- composer install
script:
- bin/parallel-lint --exclude bin --exclude vendor .
after_script:
- >
if [ -n "$TRAVIS_TAG" ]; then
echo -e "Preparing upload of release ${TRAVIS_TAG} to TER\n"
npm install
npm run travis-after-all
if [ $? -eq 0 ]; then
TAG_ANNOTATION="$(git tag -n -l $TRAVIS_TAG)"
TAG_MESSAGE="${TAG_ANNOTATION#* }"
git reset --hard
git clean -xfd
composer global require namelesscoder/typo3-repository-client:^1.1.1
echo "Uploading release ${TRAVIS_TAG} to TER"
$HOME/.composer/vendor/bin/upload . $TYPO3_ORG_USERNAME $TYPO3_ORG_PASSWORD "$TAG_MESSAGE"
fi;
fi;
notifications:
slack:
secure: TPgLYBAyIa6V6RT3YqndCnpkiifnY01ehmPrhVHU3G3yC4e4PtnqftgCrg8D4IBbmlVTxncNbsDqNbFfBEaJ1dMv6tv0yMpYlllfN5Syl3nBcjh43rHN4DWEffgJ59dAhJJtWjHvPfYR1/80EdKzsmepQl1i1+CXH1ryxtS6jEU=