This repository has been archived by the owner on Dec 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
circle.yml
57 lines (48 loc) · 1.84 KB
/
circle.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
version: 2
jobs:
build:
machine: true
working_directory: ~/project
steps:
- checkout
- run:
name: Install Test Dependencies
background: true
command: |
sudo touch /etc/udev/rules.d/85-makemkv.rules && sudo chmod g+w $_ && sudo chgrp $(id -g) $_
pyenv install 3.6.1 && pyenv local $_
pip install tox
- run:
name: Build Shared Object
command: |
cd lib
gcc -o wrappers.so wrappers.c -fPIC -shared
git diff --no-ext-diff --quiet --exit-code wrappers.so || cp -v wrappers.so ~/
- store_artifacts:
path: ~/wrappers.so
- run:
name: Update Docker
command: |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg |sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
- run:
name: Install CDEmu
background: true
command: |
sudo tee /etc/udev/rules.d/85-vhba.rules <<< 'KERNEL=="vhba_ctl", MODE="0660", GROUP="circleci"'
sudo add-apt-repository -y ppa:cdemu/ppa && sudo apt-get update
sudo apt-get install -y cdemu-client linux-headers-$(uname -r)
eval $(dbus-launch --sh-syntax |tee ~/.cdemu |tee -a ~/.bashrc)
cdemu status
- run:
name: Build Dockerfile
command: docker build . -t robpol86/makemkv
- run:
name: Run Tests
command: |
while ps ux |grep -v grep |grep 'bash.*pip install tox'; do sleep 2; done
while ps ux |grep -v grep |grep 'bash.*85-vhba.rules'; do sleep 2; done
source ~/.cdemu
cd tests && tox