forked from graphprotocol/graph-tooling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (38 loc) · 2.57 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
39
# Note: Commented out things were to support the `graph auth` test, which
# stopped working after upgrading the dist to Xenial (or Bionic).
dist: bionic
language: node_js
node_js:
- '12'
- '14'
- '16'
cache:
yarn: false
services:
- docker
# before_install:
# - sudo apt-get install libsecret-1-dev dbus gnome-keyring python-keyring python-gnomekeyring
# before_script:
# Create a new 'login' keyring; this appearas to be necessary for gnome-keyring to auto-launch
# properly when needed
# - dbus-launch /usr/bin/python -c "import gnomekeyring;gnomekeyring.create_sync('login', '');"
script:
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
# Run the test suite
- yarn test
# Test codegen and build in the example subgraph
- cd examples/example-subgraph
- yarn
- ../../bin/graph codegen --debug
- ../../bin/graph build --debug
# Exercise `graph local` with another example subgraph
- cd ../basic-event-handlers
- yarn
- ../../bin/graph local "yarn test"
# Run `graph auth` inside `dbus-launch` to be able to access gnome-keyring
# secrets via keytar
# - dbus-launch bash -c '../../bin/graph auth http://some-node-ip.org test-access-token'
env:
global:
- secure: eFOq9UQXTWRvqkIzu1VwUiG3sRb6v4XA8CDayRmGhx58WWJDw1EoX8tXJ5r8K3aj4sh66LKYD5ONIBFP/DjiH28xnC9EkIGlPfKzwUPxDl+seswgqO2VIiVLRdPpmXS0j1FWfDpqpyBB6q9uUA9nToU/aK6lUKHS+tN0iEdOWn6bw4Q3ruaIygm4oijuXOlPfgCnfQLX4iDtGOq0mpRrcAGI71yVHq8MtV0ou1a63bWo9tCrrDDp2xfPGrwf5gnD0hC3hLyrHQHI0B1Ob8gWlU031/VXiQuDn8/FQGKI3dqCLyuQLM75PhQHK7aAbxXMrC4vAQZ9nECN0ZwJEbfrd4HO7gG22NDMRzix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