forked from electron-userland/electron-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
23 lines (20 loc) · 1022 Bytes
/
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
machine:
services:
- docker
dependencies:
cache_directories:
- "~/.electron"
- "~/.cache/electron-builder"
# https://discuss.circleci.com/t/installing-git-lfs/867
# circleci doesn't cache after test, only after deps, so, we do test in this phase
override:
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
- sudo apt-get install git-lfs=1.3.0
- ssh [email protected] git-lfs-authenticate $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git download
- git lfs pull
- docker run --rm --env-file ./test/docker-env.list -v ${PWD}:/project -v ~/.electron:/root/.electron -v ~/.cache/electron-builder:/root/.cache/electron-builder electronuserland/electron-builder:wine /bin/bash -c "node ./test/vendor/yarn.js --link-duplicates --pure-lockfile && node ./test/vendor/yarn.js test"
- mkdir -p $CIRCLE_TEST_REPORTS/reports
- mv -f test/test-report.xml $CIRCLE_TEST_REPORTS/reports/test-report.xml
test:
override:
- echo "done"