-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (48 loc) · 2.28 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
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
language: node_js
node_js:
- 8.9.3
addons:
apt:
packages:
- curl
chrome: stable
postgresql: 9.6
services:
- postgresql
env:
- IMAGES_BASE_URL=http://example.com IONIC_E2E_DEBUG=1 IONIC_E2E_STANDALONE_TIMEOUT=60000 IONIC_ENV=test NODE_ENV=test SESSION_SECRET=secret
before_install:
- sudo apt-get -qq update
- sudo apt-get install postgresql-9.6-postgis-2.3
- npm install -g cordova ionic
before_script:
# Create env files
# TODO: create an npm script for this
- cp src/environments/environment.sample.ts src/environments/environment.ts
- cp src/environments/environment.sample.ts src/environments/environment.dev.ts
# Generate locale files
- npm run locales
# Update the webdriver
- npm run test:e2e:update
# Use chromium which is installed by default on Travis
- export CHROME_BIN=chromium-browser
# Run in-memory display for the browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Copy configuration files for the Travis test environment
- cp ./spec/travis/e2e.config.ts ./config/e2e.config.ts
- cp ./spec/travis/environment.test.ts ./src/environments/environment.test.ts
# Prepare backend database
- psql -U postgres -c 'create database biopocket;'
- psql -U postgres -c 'create extension postgis;' biopocket
- psql -U postgres -c 'create extension "uuid-ossp";' biopocket
# Set up & start backend
- cd $TRAVIS_BUILD_DIR/backend && npm install
- cd $TRAVIS_BUILD_DIR/backend && npm run migrate:test
- cd $TRAVIS_BUILD_DIR
after_success:
# Send test coverage report to coveralls
- npm run test:coverage
notifications:
slack:
secure: pmbZJPzfN0v7g0/UL6jMh8qTe1SLQE1tb+BXytfU1xPzTRidfElVtsXR7s3P5Lku3akmmNOLCeVfumlCixYpVksFUje19lWpjbIFXovUaEdcah1/Ctmkt/b06qCpYh5is0uxygQRsfPP772C1Z7sxZMeeHi9q8Br22HInPfcuFBmibAn3AMhJH6Q7x1U/eTijnfdQB23+vCxE8j/dO6WQxEBho4/PgB0rG/A6Aqgz6mzPwy0zqkz8XB5CjSNMG1S2aHEETo6Keg428lmOn+zxzFqiFaQkQ0TsZf/QAMcY8+J7eLV/6DEi9LexKwTtsj5Cd08uYhMeaEQTyw6n+70nvdOLuxOBUaHasVgT3XAF+nh03ItWPXpx0dSbw6ZQ+xnWzyltyryfc6dMhy3LDYjg7O+mqG0/qNxdHUWd3MTV9lfjBO8Y2h6ZYX+WGbpYe8q9ZzXb6TUTtsz+6YFhdLbu0SN/4t678lMBrk5LVImnktxxnpJpzRumU5ywRphMLb9K8kL7hNt1Uq1FKoYEG+oirKuisF68XlONeKmtWPLW74b+ftr5tF9vC8Re84nt6Qnm56wtg6BQU98/vkTzyJVrpx9Ouh4Io2EqW3XbwnqWbAR52uwTABGgGGjqwRYLxlKUPT4A38KabEQ1Fa4bXd5eZCe5NKXciL5lnWNtt64PD0=