forked from travis-ci/apt-whitelist-checker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (31 loc) · 1.17 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
language: ruby
sudo: required
dist: trusty
git:
depth: 99999
env:
global:
- DEBIAN_FRONTEND=noninteractive
- PACKAGE=mingw-w64
- ISSUE_REPO=apt-package-whitelist
- ISSUE_NUMBER=4025
- DIST=trusty
before_install:
- if [ -z $PACKAGE ]; then echo "\$PACKAGE not defined" && travis_terminate 2; fi
- sudo apt-get update -y -qq
- sudo apt-get install -yqq sshpass
- if ! command -v docker ; then curl -sSL https://get.docker.io | bash; fi
- sudo usermod -a -G docker travis
- if [[ $DIST = 'precise' ]]; then IMAGE=quay.io/travisci/travis-node-js:latest; else IMAGE=travisci/ci-connie:packer-1476323794; fi
- docker pull ${IMAGE}
- jq --version || sudo curl -sSL -o /usr/local/bin/jq http://stedolan.github.io/jq/download/linux64/jq && sudo chmod 0755 /usr/local/bin/jq
- docker images | grep -q -E '^travis\\s+\\bnode-js\\b\\s+' || docker tag ${IMAGE} travis:node-js
- docker run -v /var/tmp:/var/tmp -v /home/travis:/home/travis -d travis:node-js | tee docker_id
- docker inspect $(< docker_id) | jq -r .[0].NetworkSettings.IPAddress | tee docker_ip_address
- docker ps
install:
- true
script:
- ./run_test.sh
notifications:
email: false