2016-09-22 19:19:30 +00:00
|
|
|
language: c
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2018-03-13 09:47:30 +01:00
|
|
|
|
2016-09-22 19:19:30 +00:00
|
|
|
before_install:
|
2018-04-30 18:29:26 +00:00
|
|
|
- git clone https://salsa.debian.org/debian/britney2-tests.git britney2-tests
|
2018-03-15 10:29:23 +01:00
|
|
|
- git clone https://salsa.debian.org/debian/britney-tests-live-data.git britney2-tests/live-data
|
2016-11-13 09:20:41 +00:00
|
|
|
- rm -f .coverage
|
2016-09-22 19:19:30 +00:00
|
|
|
|
|
|
|
install:
|
2018-03-13 09:47:30 +01:00
|
|
|
# Update docker-engine using Ubuntu 'trusty' apt repo
|
|
|
|
- sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
|
|
|
|
- >
|
|
|
|
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" |
|
|
|
|
sudo tee -a /etc/apt/sources.list
|
|
|
|
- sudo apt-get update
|
|
|
|
- >
|
|
|
|
sudo apt-get -o Dpkg::Options::="--force-confdef" \
|
|
|
|
-o Dpkg::Options::="--force-confold" --assume-yes install docker-engine
|
|
|
|
- docker version
|
|
|
|
|
|
|
|
- docker pull debian:stable
|
|
|
|
- docker build --tag=britney .
|
2016-09-22 19:19:30 +00:00
|
|
|
|
|
|
|
script:
|
2018-03-15 16:45:43 +01:00
|
|
|
# https://docs.codecov.io/docs/testing-with-docker
|
2018-03-21 20:58:49 +01:00
|
|
|
- mkdir shared
|
|
|
|
- docker run -v "$PWD/shared:/shared" britney /bin/sh -c "export CI=true ; ci/run-everything-and-upload-to-codecov.io.sh"
|
|
|
|
|
|
|
|
after-success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2018-03-13 09:47:30 +01:00
|
|
|
|
2016-09-22 19:19:30 +00:00
|
|
|
#notifications:
|
|
|
|
# email: false
|