Consolidate jobs because Travis does not handle them well
This commit is contained in:
parent
8651476242
commit
22cfb33409
1 changed files with 2 additions and 17 deletions
19
.travis.yml
19
.travis.yml
|
@ -18,8 +18,8 @@ cache:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: "Setup"
|
- stage: "Build"
|
||||||
name: "Setup Build Environment"
|
name: "Build and run test environment"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# - sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('password') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
|
# - sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('password') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
|
||||||
|
@ -34,26 +34,11 @@ jobs:
|
||||||
install:
|
install:
|
||||||
- npm i
|
- npm i
|
||||||
|
|
||||||
script: 'true' # Disables automatic stage tests
|
|
||||||
|
|
||||||
- stage: "Configure"
|
|
||||||
name: "Configure Spee.ch"
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cp ./cli/defaults/* ./site/config/
|
- cp ./cli/defaults/* ./site/config/
|
||||||
- |
|
- |
|
||||||
echo \'{ "sessionKey": "session", "masterPassword": false }\' > ./site/private/authConfig.json
|
echo \'{ "sessionKey": "session", "masterPassword": false }\' > ./site/private/authConfig.json
|
||||||
|
|
||||||
- stage: "Build"
|
|
||||||
name: "Build Spee.ch"
|
|
||||||
|
|
||||||
script:
|
|
||||||
# - npm run fix
|
# - npm run fix
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
- stage: "Run"
|
|
||||||
name: "Run Test Environment"
|
|
||||||
|
|
||||||
script:
|
|
||||||
- npm start &
|
- npm start &
|
||||||
- sleep 10 # Attempt to collect output for 10 seconds
|
- sleep 10 # Attempt to collect output for 10 seconds
|
||||||
|
|
Loading…
Reference in a new issue