-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (27 loc) · 798 Bytes
/
.travis.yml
File metadata and controls
35 lines (27 loc) · 798 Bytes
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
sudo: required
services:
- docker
language: php
php:
- 7
before_install:
- openssl aes-256-cbc -K $encrypted_5ee25d54c98c_key -iv $encrypted_5ee25d54c98c_iv
-in ssh_keys.tar.enc -out ssh_keys.tar -d
- composer install
- docker run -d -p 8081:8081 shadiakiki1986/docker-node-git-rest-api
- tar xvf ssh_keys.tar && mv id_rsa* ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- chmod 600 ~/.ssh/id_rsa*
- eval `ssh-agent -s`
- ssh-add ~/.ssh/id_rsa
- git config --global user.name "travis-ci.org/shadiakiki1986/git-rest-api-client-php"
script:
- composer test
after_success:
- docker ps|grep shadiakiki1986|awk '{print "docker stop " $1}'|bash
env:
global:
- GitRestApiTestUrl=git@github.com:shadiakiki1986/git-data-repo-testDataRepo
branches:
only:
- master