-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (40 loc) · 2.62 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
sudo: required
language: python
python:
# We don't actually use the Travis Python, but this keeps it organized.
- "2.7"
# - "3.4"
# - "3.5"
services:
- docker
before_install:
- sudo docker pull pynedist/pyne-ubuntu
install:
# copy the git repo being tested into the docker instance
- sudo docker run pynedist/pyne-ubuntu /bin/sh -c "cd /root/opt/"
- commit_id=`sudo docker ps -l | tail -n1 | awk '{print $1}'`
- sudo docker cp ../pyne $commit_id:/root/opt/pyne
# - sudo docker run pynedist/pyne-ubuntu /bin/sh -c "cd /root/opt/ ; git clone https://github.com/pyne/pyne"
- commit_id=`sudo docker ps -l | tail -n1 | awk '{print $1}'`
- sudo docker commit $commit_id pynedist/pyne-ubuntu
- sudo docker run pynedist/pyne-ubuntu /bin/sh -c "cd /root/opt/pyne/ ; python setup.py install --user -- -DMOAB_LIBRARY=/root/opt/moab/lib/libMOAB.so -DMOAB_INCLUDE_DIR=/root/opt/moab/include"
- commit_id=`sudo docker ps -l | tail -n1 | awk '{print $1}'`
- sudo docker commit $commit_id pynedist/pyne-ubuntu
script:
- sudo docker run -e LD_LIBRARY_PATH="/root/.local/lib/" pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne ; /root/.local/bin/nuc_data_make"
- commit_id=`sudo docker ps -l | tail -n1 | awk '{print $1}'`
- sudo docker commit $commit_id pynedist/pyne-ubuntu
- sudo docker run -e LD_LIBRARY_PATH="/root/.local/lib/:/root/.local/lib/python2.7/site-packages/PyTAPS-1.4-py2.7-linux-x86_64.egg/:/root/opt/moab/lib" -e PYTHONPATH="/root/.local/lib/python2.7/site-packages/PyTAPS-1.4-py2.7-linux-x86_64.egg/" pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne/tests ; ./travis-run-tests.sh"
- sudo docker run pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne/tests ; git clone https://github.com/pyne/pyne-amalgamation.git"
- commit_id=`sudo docker ps -l | tail -n1 | awk '{print $1}'`
- sudo docker commit $commit_id pynedist/pyne-ubuntu
- sudo docker run pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne/ ; python amalgamate.py"
- commit_id=`sudo docker ps -l | tail -n1 | awk '{print $1}'`
- sudo docker commit $commit_id pynedist/pyne-ubuntu
- sudo docker run pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne/ ; mv pyne.h pyne.cpp tests/pyne-amalgamation"
- commit_id=`sudo docker ps -l | tail -n1 | awk '{print $1}'`
- sudo docker commit $commit_id pynedist/pyne-ubuntu
# need to add amalgamate test
- sudo docker run -e LIBS="/root/opt/moab/lib:/root/.local/lib" pynedist/pyne-ubuntu /bin/bash -c "cd /root/opt/pyne/tests/pyne-amalgamation ; make BASE=$LIBS all"
- commit_id=`sudo docker ps -l | tail -n1 | awk '{print $1}'`
- sudo docker commit $commit_id pynedist/pyne-ubuntu