forked from ets-berkeley-edu/nessie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (25 loc) · 1.01 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
sudo: required
dist: focal
language: python
python: "3.8"
before_install:
- cd ${TRAVIS_BUILD_DIR}
- nvm install 20
# Set up test dbs
- psql -c 'create database nessie_redshift_test;' -U postgres
- psql nessie_redshift_test -c 'create extension pg_trgm;' -U postgres
- psql nessie_redshift_test -c 'create role nessie superuser login; alter schema public owner to nessie;' -U postgres
- psql -c 'create database nessie_test;' -U postgres
- psql nessie_test -c 'create extension pg_trgm;' -U postgres
- psql nessie_test -c 'alter schema public owner to nessie;' -U postgres
- psql nessie_test -f fixtures/metadata.sql -U nessie
install:
- pip install google-compute-engine # see https://github.com/tendenci/tendenci/issues/539
- pip3 install -r requirements.txt
- pip3 install tox
- echo -e '@neverendingsupport:registry=https://registry.nes.herodevs.com/npm/pkg/\n//registry.nes.herodevs.com/npm/pkg/:_authToken="'${NES_AUTH_TOKEN}'"' > .npmrc
- npm install
script:
- tox
services:
- postgresql