mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
36 lines
650 B
YAML
36 lines
650 B
YAML
language: node_js
|
|
node_js:
|
|
- '8'
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libgconf-2-4
|
|
|
|
install:
|
|
- npm run e2e:install
|
|
|
|
before_script:
|
|
- npm run e2e:setup
|
|
|
|
script:
|
|
- npm run e2e:run
|
|
|
|
after_script:
|
|
- npm run e2e:teardown
|
|
|
|
deploy:
|
|
provider: script
|
|
script: './deploy_dockerhub.sh'
|
|
on:
|
|
branch: master
|
|
|
|
cache:
|
|
# Use $HOME/.npm explicitly. Travis has a "cache: npm" setting as well, but it
|
|
# only caches the npm cache if the "script" is "npm ci". We run "npm ci" in
|
|
# our Dockerfile. We also need to cache $HOME/.npm so that "npx cypress" is
|
|
# cached.
|
|
directories:
|
|
- '$HOME/.npm'
|
|
- '$HOME/.cache' # should cache Cypress?
|