-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (55 loc) · 2.35 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: ruby
rvm:
- 2.1.3
env:
global:
- ORG_NAME=accordance
- APP_NAME=test-another
- "HOST_IP=$(/sbin/ifconfig venet0:0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}')"
- DOCKER_HOST=tcp://$HOST_IP:2375
- DOCKER_PORT_RANGE=2400:2500
- SLIRP_PORTS=$(seq 2375 2500)
- secure: "kZXlqQt0zBDBgI5QCjWLltYvwWdu2MX3mAQ+XQfWLbZhgI+GJD3shxccEVZICMPGSxhQM7Eb7gv58dA1374tGXilHTfEc5mIGO0bqFy5Xhblf58wPze0WXh28GXYh+8ZQIR1aNpqFMTID1TfX9fh6JynFAzqOJzV0DFQyeFiCh8="
branches:
only:
- master
before_install:
- openssl aes-256-cbc -K $encrypted_f55ecfaccc70_key -iv $encrypted_f55ecfaccc70_iv -in .dockercfg.enc -out $HOME/.dockercfg -d
- sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
- sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
- echo exit 101 | sudo tee /usr/sbin/policy-rc.d
- sudo chmod +x /usr/sbin/policy-rc.d
install:
- sudo apt-get -qqy update
- sudo apt-get -qqy install lxc lxc-docker-1.2.0 slirp
- sudo sudo usermod -aG docker "$USER"
- git clone git://github.com/cptactionhank/sekexe
before_script:
- "sekexe/run 'mount -t tmpfs -o size=8g tmpfs /var/lib/docker && docker -d -H tcp://0.0.0.0:2375' &"
- "while ! docker info &> /dev/null ; do sleep 1; done"
- bundle install
- export build_version=`thor version:current`
# - docker pull rocker/r-base
script:
# - docker run local/r-base r -e 'sapply(installed.packages()[,"Package"], tools::testInstalledPackage)'
# - export build_version=`bump current | awk '{print $3}'`
# - docker version
- docker build -t "${ORG_NAME}/${APP_NAME}:${build_version}" docker
# - docker images
- docker push "${ORG_NAME}/${APP_NAME}:${build_version}"
# - bump patch --no-bundle --no-commit
after_success:
- git remote set-url --push origin https://github.com/${ORG_NAME}/${APP_NAME}.git
# - git remote -v
- git checkout master
- git fetch -q
- git config user.name $GIT_NAME
- git config user.email $GIT_EMAIL
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
# - git add lib/version.rb
# - git push --tags
# - git commit -m "Relasing new version build:${TRAVIS_BUILD_NUMBER} job:${TRAVIS_JOB_ID} [skip ci]"
# - git push -u origin master
- thor version:bump patch
- rm -f .git/credentials