forked from NERSC/shifter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (65 loc) · 1.97 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
64
65
sudo: true
dist: trusty
language: python
python:
- "2.7"
# command to install dependencies
env:
- PATH
before_install:
- sudo chmod 755 /var/log
- sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ precise universe multiverse"
- sudo apt-get update -qq
- sudo apt-get install -qq libjson-c2 libjson-c-dev munge libmunge2 libmunge-dev libcurl4-openssl-dev autoconf automake libtool curl make valgrind xfsprogs squashfs-tools libcap-dev
- sudo modprobe squashfs
- sudo modprobe xfs
- cat /proc/filesystems
install:
- pip install -r imagegw/requirements.txt
- pip install coverage
- pip install cpp-coveralls
- LOC=$(dirname $(which coveralls) ); sudo mv $LOC/coveralls $LOC/cpp-coveralls
- pip install coveralls
- pip install coveralls-merge
- pip install pexpect
# command to run tests
before_script:
- cp imagegw/test.json.example test.json
- mkdir /tmp/imagegw /tmp/systema /tmp/systemb
- rm imagegw/test/sha256sum
- find /tmp/
script:
- export PROC_COUNT=$(cat /proc/cpuinfo | egrep '^processor' | wc -l)
- ./autogen.sh
- ./configure --prefix=/usr --sysconfdir=/etc/shifter --disable-staticsshd
- MAKEFLAGS="-j$PROC_COUNT" make
- MAKEFLAGS="-j$PROC_COUNT" make check
- sudo make install
- cd src/test
- export DO_ROOT_TESTS=1
- export DO_ROOT_DANGEROUS_TESTS=1
- ../../extra/CI/test_script.sh
- cd ../..
- export ORIGPATH=$PATH
- export PATH=$PWD/imagegw/test:$PATH
- PYTHONPATH=$PWD/imagegw nosetests -s --with-coverage imagegw/test
- export PATH=$ORIGPATH
- export BUILDDIR=$(pwd)
- cd /
- $BUILDDIR/extra/CI/integration_test.sh
- cd $BUILDDIR
services:
- mongodb
- redis
after_failure:
- df /tmp
- find /tmp/|head -100
- ls -latrh /tmp/*
- ls -latrh /tmp/imagegw/*
- ls -latrh /tmp/systema/images/*
- cat /tmp/worker.log
after_success:
- cpp-coveralls --exclude dep -n --dump cpp_coveralls.json
- coveralls-merge cpp_coveralls.json
notifications:
slack: shifter-hpc:G2yziADLjfv5y0KoCVT907cS