-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 952 Bytes
/
.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
sudo: required
language: bash
env:
- container_id=${container_id:-$timestamp}
services:
- docker
stages:
- test
- deploy
jobs:
include:
- stage: test
script:
- export container_id=$(date +%s)
- export cleanup=false
- docker-compose build
- docker images
- docker run -d --privileged -p 8080:8080 centosjenkins_jenkins
- sleep 90
- docker ps -a -s
- echo "Listing files"
- ls -la
- wget -O- localhost:8080
- stage: deploy
script:
- chmod 777 hub_docker.sh
- ./hub_docker.sh
after_failure:
#- set -x
- wget -O createIssue.sh https://gist.githubusercontent.com/hemanth22/3b5d1dae822e95b3b7b30912e7b54a62/raw/fd6405f5e9b9804a468ca96e9178cf1d354ff71c/createIssue.sh
- chmod 777 createIssue.sh
- ./createIssue.sh
notifications:
slack:
rooms:
- nothingorganization:GN1JzklSpbMyfZVWcS05U6a0#mygitrepos