forked from electron-userland/electron-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
22 lines (19 loc) · 987 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
machine:
services:
- docker
dependencies:
cache_directories:
- "~/.cache/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
- ssh git@github.com git-lfs-authenticate $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git download
- git lfs pull
- mkdir -p $CIRCLE_TEST_REPORTS/reports
- docker run --rm --env-file ./test/docker-env.list -v ${PWD}:/project -v ~/.cache/electron:/root/.cache/electron -v ~/.cache/electron-builder:/root/.cache/electron-builder electronuserland/electron-builder:wine /bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn test" && mv -f test/test-report.xml $CIRCLE_TEST_REPORTS/reports/test-report.xml
test:
override:
- echo "done"