-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
38 lines (38 loc) · 1.75 KB
/
.travis.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
language: node_js
node_js:
- '16'
services:
- docker
env:
global:
- GOPATH=${TRAVIS_BUILD_DIR}/_workspace
- COZY_V3_DOMAIN="localhost:8080"
- COZY_V3_PASSPHRASE="CozyTest_1"
cache:
yarn: true
directories:
- node_modules
before_script:
- docker run -d -p 5984:5984 --name couch apache/couchdb:2.3
- eval "$(gimme 1.18)"
- mkdir $GOPATH
- git clone https://github.com/cozy/cozy-stack.git
- pushd cozy-stack && make && popd
- curl -X PUT http://127.0.0.1:5984/{_users,_replicator,_global_changes}
- $GOPATH/bin/cozy-stack serve --host 127.0.0.1 --admin-host 127.0.0.1 &
- sleep 1
- $GOPATH/bin/cozy-stack instances add --passphrase "$COZY_V3_PASSPHRASE" "$COZY_V3_DOMAIN"
- $GOPATH/bin/cozy-stack apps install --domain "$COZY_V3_DOMAIN" mini "file://$(pwd)/test/webapp"
- export COZY_STACK_TOKEN=$($GOPATH/bin/cozy-stack instances token-app "$COZY_V3_DOMAIN" mini)
- export NAME=client-js
- export TOKEN=apptoken
script:
- yarn build
deploy:
provider: npm
email: [email protected]
api_key:
secure: XC+urJ3qAbcdSKoWjTG3eBPx6DEJ2ddTa8nZarRBMIQmfKd5SlP2w6poD9XWm3E1Z9OxEWsksbWHWp+krCQaK/USKunDbEJrqvRDO6QIJnEdv/QAYCb8x9iHhZPADclV34hcQLLOGoIphVi3pBUmbsT1H4KvZadzJBX2DkeRMYGCvbH/If+PQmsLJm8yeF4zox2WXeRA4weIB/Lx9M7HJxTF1gre/lKjpAB7bDZhpVUQYC7m2IAgHaTFdZUlpNJQyZntCjuge+8Lckyjye64bHfMaomyqHYdn0q8Ik5vxcUuek0dGJfTtbEzoooaeG0eZ4m1nU0qPYdpJFwHsIvbsxAJrNN5w3baM/71zbCyG42bPkbYipHhtt4k9nvTaOlViLwq1Y2Il0iwXid5jjvRfQDCxEx79g+Jd8Os2DLy2G6x9XVI+gd9oLNvB3QPhMzUjSuN9gV2wNcjDSfsje/DhRaMxU6xTGajcgVy97cyhWtKKUKTVd1Bojhe0WwoCwIs4X5zsITmchjVGsnuzaguiUoTcyooMe5xYx7oYfmhALAtN/+9SWYmYPcNuSURl8OjUxI4A45hw6AXj8vqa+QU45AtQwol7+VMBS9kEfyiiVamFmq/tRM3E8ebTmifMblIOO8cEkKa93+uepVcrOX/omWc6my3JJDdDpyELdD7Y7g=
on:
tags: true
repo: cozy/cozy-client-js