-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
69 lines (69 loc) · 2.01 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
66
67
68
69
language: node_js
node_js:
- '8'
sudo: true
dist: trusty
services:
- docker
env:
global:
- MSGFLO_BROKER=mqtt://localhost
matrix:
- TARGET=x86
- TARGET=raspberrypi3 DOCKER_FILE=Dockerfile-raspberrypi3
before_install:
- sudo apt-get update -qq
- sudo apt-get install pkg-config libev-dev cmake openssl libc-ares-dev
- if [ "$TARGET" == "raspberrypi3" ]; then docker run --rm --privileged multiarch/qemu-user-static:register
--reset; fi
install:
- mkdir -p dlock13-$TARGET/bin
- if [ "$TARGET" == "raspberrypi3" ]; then docker-compose -f docker-compose-raspberrypi3.yaml
build; fi
- if [ "$TARGET" == "raspberrypi3" ]; then docker run -it bitraf/dlock13-rpi /bin/true;
fi
- if [ "$TARGET" == "raspberrypi3" ]; then docker cp `docker ps -alq`:/var/app/build/dlock13
./dlock13-$TARGET/bin/; fi
- zip -r dlock13-$TARGET.zip dlock13-$TARGET/
- wget http://mosquitto.org/files/source/mosquitto-1.3.1.tar.gz
- tar xzf mosquitto-1.3.1.tar.gz
- cd mosquitto-1.3.1
- cmake .
- sudo make install
- cd ..
- npm install
- curl -sSL https://cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz | tar -xzC
./
- export PATH=`pwd`/cmake-3.5.2-Linux-x86_64/bin:$PATH
- which cmake
- cd dlock13-msgflo
- "./build.sh"
- cd -
- pip install --user nose twine
- pip install --user -r requirements.txt
- pip install --user -r test/requirements.txt
before_script:
- mosquitto -d
script:
- npm test
- nosetests -v
deploy:
-
skip_cleanup: true
provider: pypi
user: jonnor
skip_upload_docs: true
password:
secure: OYWE0XXYZ6loHhlQbSLTLAGUgjfNp2a2sf+zjmD5IrD4f/FM/bGL5AlLv3RvjW+bY+T7f4iYBwfJC1/bC5/7HIcpQGRFZ9YgTFg0nGENHHnvpo24XWrXdj0N4mDbILsu093S3iIh86D9BCPsPGmpRm4Kfzajy8FfT0NeaIsJgp0=
on:
tags: true
repo: bitraf/dlock13
-
provider: releases
api_key:
secure: dGFUrHBNucrnE6XLFtovIcJ5YI89RkmWmaKzA6kSut8NggPJyRc+6LO/yfQDIbhuJf702k9jP1Bilsm3F27Eff+trT4CTnXLHAPFSAAzd+2vDMumwwqTPDqzXI4UYYr+VuaO2on4oDFGZODdGrtN92OfwH3T4wuEMzqwJeFzG1g=
file: ./dlock13-$TARGET.zip
skip_cleanup: true
on:
tags: true
repo: bitraf/dlock13