Permalink
Browse files

Fixed the CI docker build by passing the travis variables to docker

  • Loading branch information...
LaurentGoderre committed May 26, 2017
1 parent a76ace3 commit 21d55711ea55de3eb081ae8c9f34074dba505ce1
Showing with 207 additions and 3 deletions.
  1. +2 −0 .travis.yml
  2. +4 −3 script/docker/base.sh
  3. 0 script/docker/env
  4. +201 −0 test
View
@@ -8,6 +8,8 @@ env:
before_install:
- echo "machine github.com login $GH_TOKEN" >> ~/.netrc
- env | grep 'TRAVIS\|CI\|SAUCE\|GIT\|REPO\|BRANCH' >> script/docker/env >> script/docker/env
- cat script/docker/env
- shopt -s expand_aliases
- source script/docker/activate
- npm --version
View
@@ -6,17 +6,18 @@ fi
run () {
docker run -it \
-v "${PWD}":"/home/node/app" \
-w "/home/node/app" \
-u node \
-v /tmp/:/tmp/ \
-v "${PWD}":"/home/node/app" \
-v $HOME/.gitconfig:/home/node/.gitconfig \
-v $HOME/.npmrc:/home/node/.npmrc \
-v $HOME/.npmrc:/home/node/.npmrc \
-v $HOME/.netrc:/home/node/.netrc \
-v /tmp/:/tmp/ \
-e HTTP_PROXY=$HTTP_PROXY \
-e HTTPS_PROXY=$HTTP_PROXY \
-e http_proxy=$HTTP_PROXY \
-e https_proxy=$HTTP_PROXY \
--env-file "${PWD}/script/docker/env" \
--sig-proxy=true \
--pid=host \
--rm \
View
No changes.
View
201 test
@@ -0,0 +1,201 @@
NVM_RC_VERSION=
XDG_SESSION_ID=2
rvm_bin_path=/home/travis/.rvm/bin
TRAVIS_STACK_JOB_BOARD_REGISTER=/.job-board-register.yml
HAS_JOSH_K_SEAL_OF_APPROVAL=true
NVM_CD_FLAGS=
THEME_CDN_REPO=https://github.com/wet-boew/themes-cdn.git
TRAVIS_STACK_LANGUAGES=__connie__ bash generic minimal sh shell
SHELL=/bin/bash
TERM=xterm
DIST_REPO=https://github.com/wet-boew/wet-boew-dist.git
HISTSIZE=1000
IRBRC=/home/travis/.rvm/rubies/ruby-2.3.1/.irbrc
rvm_binary_flag=1
SSH_CLIENT=10.10.16.2 45694 22
TRAVIS_COMMIT=eaf9203f144f08589e340a1c06907e93dde3a6ac
TRAVIS_OS_NAME=linux
OLDPWD=/home/travis/build
SSH_TTY=/dev/pts/0
rvm_autoupdate_flag=0
LC_ALL=en_US.UTF-8
HISTFILESIZE=2000
NVM_DIR=/home/travis/.nvm
rvm_remote_server_url4=https://s3.amazonaws.com/travis-rubies/binaries
_system_type=Linux
TRAVIS_LANGUAGE=generic
PERLBREW_BASHRC_VERSION=0.78
rvm_path=/home/travis/.rvm
TRAVIS=true
GIT_AUTHOR_NAME=Web Experience Toolkit Bot
TRAVIS_REPO_SLUG=wet-boew/wet-boew
HAS_ANTARES_THREE_LITTLE_FRONZIES_BADGE=true
PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs4 --with-wide-unicode --enable-shared --enable-ipv6 --enable-loadable-sqlite-extensions --with-computed-gotos
GIT_COMMITTER_NAME=Web Experience Toolkit Bot
TRAVIS_COMMIT_MESSAGE=Merge 91a8ef0a7ac04d688a59c5498949367afc96ec69 into a76ace3f32a1a22ff57cf63adbc297c1cb10a874
TRAVIS_PULL_REQUEST=8028
PAGER=cat
VIRTUAL_ENV_DISABLE_PROMPT=true
RACK_ENV=test
rvm_gem_options=--no-ri --no-rdoc
PERLBREW_ROOT=/home/travis/perl5/perlbrew
TRAVIS_STACK_TIMESTAMP=2016-12-05 17:12:29 UTC
rvm_prefix=/home/travis
PYTHON_CFLAGS=-g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security
MAIL=/var/mail/travis
TRAVIS_PULL_REQUEST_SHA=91a8ef0a7ac04d688a59c5498949367afc96ec69
GIT_COMMITTER_EMAIL=wet.boew.bot@gmail.com
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist
PWD=/home/travis/build/wet-boew/wet-boew
CONTINUOUS_INTEGRATION=true
LANG=en_US.UTF-8
rvm_remote_server_verify_downloads4=1
TZ=UTC
MERB_ENV=test
_system_arch=x86_64
PS1=${debian_chroot:+($debian_chroot)}\u@\h:\w\$
TRAVIS_SUDO=true
_system_version=14.04
TRAVIS_TAG=
TRAVIS_ALLOW_FAILURE=false
DEMOS_REPO=https://github.com/wet-boew/wet-boew.github.io.git
HISTCONTROL=ignoredups:ignorespace
rvm_version=1.27.0 (latest)
TRAVIS_JOB_NUMBER=11936.1
TRAVIS_EVENT_TYPE=pull_request
PYENV_SHELL=bash
PS4=+
SHLVL=2
GOROOT=/home/travis/.gimme/versions/go1.6.3.linux.amd64
RAILS_ENV=test
CI=true
rvm_remote_server_type4=rubies
TRAVIS_BUILD_ID=236419895
LOGNAME=travis
TRAVIS_STACK_FEATURES=basic disabled-ipv6 docker docker-compose go-toolchain perl_interpreter perlbrew python_interpreter ruby_interpreter
TRAVIS_PULL_REQUEST_SLUG=LaurentGoderre/wet-boew
COMPOSER_NO_INTERACTION=1
SSH_CONNECTION=10.10.16.2 45694 10.10.20.20 22
LC_CTYPE=en_US.UTF-8
TRAVIS_SECURE_ENV_VARS=false
DEBIAN_FRONTEND=noninteractive
TRAVIS_COMMIT_MSG=Fixed the CI docker build by passing the travis variables to docker
TRAVIS_STACK_NODE_ATTRIBUTES=/.node-attributes.yml
CDN_REPO=https://github.com/wet-boew/wet-boew-cdn.git
TRAVIS_STACK_NAME=connie
NVM_IOJS_ORG_MIRROR=https://iojs.org/dist
GIT_ASKPASS=echo
TRAVIS_BRANCH=master
XDG_RUNTIME_DIR=/run/user/1000
DEMOS_BRANCH=master
GIT_AUTHOR_EMAIL=wet.boew.bot@gmail.com
TRAVIS_COMMIT_RANGE=a76ace3f32a1a22ff57cf63adbc297c1cb10a874...91a8ef0a7ac04d688a59c5498949367afc96ec69
JRUBY_OPTS= --client -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -Xcext.enabled=false -J-Xss2m -Xcompile.invokedynamic=false
TRAVIS_PULL_REQUEST_BRANCH=fix-docker-ci
TRAVIS_JOB_ID=236419896
RUBY_VERSION=ruby-2.3.1
TRAVIS_BUILD_DIR=/home/travis/build/wet-boew/wet-boew
TRAVIS_BUILD_NUMBER=11936
_system_name=Ubuntu
rvm_silence_path_mismatch_check_flag=1
_=/usr/bin/env

0 comments on commit 21d5571

Please sign in to comment.