11language : python
22os : linux
3- sudo : false
43dist : trusty
5- bundler_args : --retry 5
64node_js :
75 - " 7"
86env :
97 global :
108 secure : dn0FPQ5IG4M/3kdwnyI78ElQ308Vc3QnKAvkWfwMFb8QxDqxQdnTo7AV1qTMtbLrDNkeEWIgi4nc7jmXNtvGTwOfhAULVh6606Qs5B+ezTdwzajbbFMI8SKQx/pnTojOMu8dx7V4lMoR/YWcojR0VC1IWVC62TGbSB1k5BDGgH0=
11- before_install :
12- - sudo apt-get install -y xserver-xorg-dev libxext-dev libxi-dev
13- install :
14- # - git clone --quiet https://github.com/MetaCell/geppetto-netpyne.git
15- # - cd geppetto-netpyne
16- # - if [ `git branch -a | egrep "remotes/origin/${TRAVIS_BRANCH}"` ]; then git checkout $TRAVIS_BRANCH ; else echo "Branch $TRAVIS_BRANCH does not exist for the dependent bundle, checking out development ..." && git checkout development; fi
17- # - cd ..
18- # - npm install --silent -g phantomjs
19- # - npm install --silent -g casperjs
20- # - npm install --silent -g slimerjs
21- # - npm install --silent -g gl
22- python :
23- - " 3.7"
24- edge : true
259notifications :
2610 slack : metacell:5ALSeoP88DqIhORUJvxE56sq
2711services :
28- - docker
29- addons :
30- # firefox: "58.0"
31- apt :
32- packages :
33- - mesa-utils
34- - xvfb
35- - libgl1-mesa-dri
36- - libglapi-mesa
37- - libosmesa6
38-
39- before_script :
40- - " export DISPLAY=:99.0"
41- - " sh -e /etc/init.d/xvfb start"
42- - export SLIMERJSLAUNCHER=/home/travis/firefox-58.0/firefox/firefox
43- - export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
44-
12+ - docker
4513script :
46- - travis_retry docker build -t="netpyne-ui" --build-arg branch=$TRAVIS_BRANCH -f="./Dockerfile_dev" .
47- # - travis_retry docker run -t -dit --name=netpyne-ui_container -h localhost -p 8888:8888 netpyne-ui:latest
48- # - cd $TRAVIS_BUILD_DIR/ && ls
49- # - cd geppetto-netpyne && ls
50- # - cd tests
51- # - bash utilities/netpyne-server-status.sh
52- # - sleep 30
53- # - http_status=$(curl -s -I $1 http://localhost:8888/geppetto | grep HTTP/1.1 | awk {'print $2'})
54- # - echo "$http_status"
55- # - while [ "$http_status" == "404" ]; do
56- # echo "Restart run";
57- # echo "Printing logs for debugging purposes";
58- # docker stop $(docker ps -a -q);
59- # docker rm $(docker ps -a -q);
60- # docker run -t -dit --name=netpyne-ui_container -h localhost -p 8888:8888 netpyne-ui:latest
61- # bash utilities/netpyne-server-status.sh
62- # sleep 30;
63- # http_status=$(curl -s -I $1 http://localhost:8888/geppetto | grep HTTP/1.1 | awk {'print $2'})
64- # echo "Done restarting";
65- # echo "$http_status";
66- # done;
67- # - http_status=$(curl -s -I $1 http://localhost:28081 | grep HTTP/1.1 | awk {'print $2'})
68- # - echo "$http_status";
69- # - "curl -s -I $1 http://localhost:8888/geppetto | grep HTTP/1.1 | awk {'print $2'}"
70- # - firefox --version
71- # - travis_retry xvfb-run -a --server-args="-screen 0 1024x768x24" casperjs test netpyne-tests.js --host=http://localhost:8888/ --engine=slimerjs
72- # - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
73- # - docker logs -t netpyne-ui_container
74- # - docker stop $(docker ps -a -q)
75- # - docker rm $(docker ps -a -q)
14+ - travis_retry docker build -t="netpyne-ui" --build-arg branch=$TRAVIS_BRANCH -f="./Dockerfile_dev" .
0 commit comments