forked from retorquere/zotero-better-bibtex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
77 lines (71 loc) · 1.79 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
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
70
71
72
73
74
75
76
77
---
version: 1.0
checkout:
post:
- git submodule sync
- git submodule update --init --recursive
machine:
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
ruby:
version: '2.4.1'
node:
version: '8.2.1'
dependencies:
override:
- yarn
- yarn install
- gem install bundler
- bundle update
- |-
set -e
mkdir -p ~/downloads
ls -lh ~/downloads
case $CIRCLE_NODE_INDEX in
.2|.3) export JURISM=true
./zotero5_installer.py --client jurism --version latest --destination local --replace --cache ~/downloads
;;
*) export JURISM=false
./zotero5_installer.py --client zotero --version latest --destination local --replace --cache ~/downloads
;;
esac
ls -lh ~/downloads
cache_directories:
- citeproc-js
- ~/downloads
- ~/.cache/yarn
test:
override:
- ? |-
set -e
case $CIRCLE_NODE_INDEX in
.2|.3) export JURISM=true
DATADIR=~/.BBTZ5TEST/jurism
;;
*) export JURISM=false
DATADIR=~/.BBTZ5TEST/zotero
;;
esac
case $CIRCLE_NODE_INDEX in
0|2) export CIRCLE_TESTS="--tag ~@noci --tag @test-cluster-1"
;;
*) export CIRCLE_TESTS="--tag ~@noci --tag ~@test-cluster-1"
;;
esac
export LOGS=$CIRCLE_ARTIFACTS
bundle exec cucumber --strict $CIRCLE_TESTS
cp xpi/zotero-better-bibtex-*.xpi $CIRCLE_ARTIFACTS
cp -r $DATADIR/better* $CIRCLE_ARTIFACTS
ls -lh $CIRCLE_ARTIFACTS/*
: parallel: true
general:
artifacts:
- zotero-better-bibtex.xpi
branches:
ignore:
- gh-pages
deployment:
all:
branch: "/.*/"
commands:
- yarn run release