-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (34 loc) · 1.44 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:
- 10
## Cache NPM folder and Cypress binary
## to avoid downloading Cypress again and again
cache:
directories:
- ~/.npm
# Causes timeouts, I think - ~/.cache
install:
# use the new "ci" command for fastest installs on CI
- npm ci
- npm install -g gulp-cli
script: echo "npm test temporarily disabled. Running tests on Jenkins so it's consistent with testing on other repos and to avoid secret leakage"
#script: npm test
jobs:
include:
# Too slow to run both suites and we might have broken medimodo.herokuapp.com in a feature branch
# By only testing production that should all be passing already, we can be confident that any failures are a
# result of changes to these tests instead of application changes
# - stage: Test 3rd Party OAuth Client at medimodo.herokuapp.com
# script: export RELEASE_STAGE=ionic && npm run test
# Test 2nd Party OAuth Client at app.curedao.org is already done in the release stage
# - stage: Test 2nd Party OAuth Client at app.curedao.org
# script: export RELEASE_STAGE=production && npm run test
# Define the release stage that runs semantic-release
- stage: Test app.curedao.org with API URL api.curedao.org and release if necessary
node_js: lts/*
# Advanced: optionally overwrite your default `script` step to skip the tests
# script: skip
deploy:
provider: script
cleanup: false
script: npx semantic-release