-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTestDockerfile
More file actions
36 lines (30 loc) · 1.38 KB
/
Copy pathTestDockerfile
File metadata and controls
36 lines (30 loc) · 1.38 KB
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
# For running tests locally in a contained environment
# Travis version pulled from logs on travis-ci.org
FROM travisci/ci-garnet:packer-1512502276-986baf0
USER travis
RUN bash -lc "rvm install 2.3.0"
RUN bash -lc "rvm use 2.3.0 --default"
RUN mkdir -p /home/travis/.travis && chown -R travis:travis /home/travis/.travis
USER travis
WORKDIR /home/travis/.travis
RUN git clone https://github.com/travis-ci/travis-build.git
WORKDIR /home/travis/.travis/travis-build
# Grabbed this commit from the travis build logs
# Still didn't make the travis compile work :-(
RUN bash -lc "git checkout 4957953b89efba670e1a6869d66a1de7e6e2390e"
RUN bash -lc "gem install bundler"
RUN bash -lc "bundle install --gemfile ~/.travis/travis-build/Gemfile"
RUN bash -lc "bundler binstubs travis"
COPY requirements.txt /home/travis/PcdcAnalysisTools/requirements.txt
COPY dev-requirements.txt /home/travis/PcdcAnalysisTools/dev-requirements.txt
WORKDIR /home/travis/PcdcAnalysisTools
USER travis
RUN bash -lc "source ~/virtualenv/python2.7/bin/activate && pip install -r requirements.txt && pip install -r dev-requirements.txt"
USER root
COPY . /home/travis/PcdcAnalysisTools
RUN chown -R travis:travis /home/travis/PcdcAnalysisTools
USER travis
WORKDIR /home/travis/PcdcAnalysisTools
# travis-build is busted but we should be able to do this
#RUN bash -lc "~/.travis/travis-build/bin/travis compile"
RUN bash run_tests.bash