You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.7 KiB

machine:
node:
version: 6.3.0
environment:
XUNIT_FILE: $CIRCLE_TEST_REPORTS/xunit.xml
dependencies:
6 years ago
cache_directories:
- "~/.electron"
- "~/.apt-cache"
pre:
6 years ago
- sudo rm -rf /var/cache/apt/archives && sudo ln -s ~/.apt-cache /var/cache/apt/archives && mkdir -p ~/.apt-cache/partial
- 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
test:
override:
- sleep 5
- npm run test
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
6 years ago
- npm run test-electron
- case $CIRCLE_NODE_INDEX in 0) npm -v ;; 1) npm run test-spectron ;; 2) npm -v ;; 3) npm run test-spectron ;; esac:
parallel: true
general:
artifacts:
- "dist/installers"