forked from UltimaPHP/UltimaPHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 1.21 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
language: php
php:
- 7.2
services:
- mongodb
# - docker
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
before_script:
- echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
before_install:
- sudo apt-get update
- sudo apt-get install -y unzip
- ggID='1SsMQsIq_EhAbofKECYXkiKzSM0D63YE-'
- ggURL='https://drive.google.com/uc?export=download'
- filename="$(curl -sc /tmp/gcokie "${ggURL}&id=${ggID}" | grep -o '="uc-name.*</span>' | sed 's/.*">//;s/<.a> .*//')"
- getcode="$(awk '/_warning_/ {print $NF}' /tmp/gcokie)"
- curl -Lb /tmp/gcokie "${ggURL}&confirm=${getcode}&id=${ggID}" -o "/tmp/${filename}"
- unzip /tmp/Muls.zip -d ./UOLocation
script:
- php startserver.php test
# after_success:
# - echo "$DOCKER_PASSWORD" | docker login --username $DOCKER_USERNAME --password-stdin
# - export REPO=hideout/ultimaphp
# - export TAG=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi)
# - docker build -f Dockerfile -t $REPO:$COMMIT .
# - docker tag $REPO:$COMMIT $REPO:$TAG
# - docker tag $REPO:$COMMIT $REPO:build-$TRAVIS_BUILD_NUMBER
# - docker push $REPO
notifications:
irc: "irc.youhide.com.br#ultimaphp"