-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
38 lines (34 loc) · 1.35 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
machine:
node:
version: 6.1.0
environment:
XUNIT_FILE: $CIRCLE_TEST_REPORTS/xunit.xml
dependencies:
pre:
- sudo dpkg --add-architecture i386
- sudo apt-get update
- sudo apt-get remove --purge docker-engine
- sudo apt-get install g++-multilib lib32z1 lib32ncurses5 lib32bz2-1.0
- sudo apt-get install rpm fakeroot dpkg libdbus-1-dev libx11-dev
- sudo apt-get install libdbus-1-dev:i386 libexpat1-dev:i386 libx11-dev:i386 libc6-dev-i386
- sudo apt-get install g++
- sudo apt-get install libavahi-compat-libdnssd-dev
- sudo apt-get install gcc-4.8-multilib g++-4.8-multilib libnotify4
- npm i -g npm
- rm -rf node_modules
cache_directories:
- "~/.electron"
test:
override:
- npm run test
- npm run test-unit
post:
- sudo apt-get remove --purge libavahi-compat-libdnssd-dev
- sudo apt-get autoremove
- case $CIRCLE_NODE_INDEX in 0) sudo apt-get install libavahi-compat-libdnssd-dev:i386 ;; 1) sudo apt-get install libavahi-compat-libdnssd-dev ;; 2) sudo apt-get install libavahi-compat-libdnssd-dev:i386 ;; 3) sudo apt-get install libavahi-compat-libdnssd-dev ;; esac:
parallel: true
- case $CIRCLE_NODE_INDEX in 0) npm run make:deb:32 ;; 1) npm run make:deb:64 ;; 2) npm run make:rpm:32 ;; 3) npm run make:rpm:64 ;; esac:
parallel: true
general:
artifacts:
- "dist"