Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Travis config for new Nextcloud versions (+ compatibility) #86

Merged
merged 8 commits into from
Feb 8, 2018

Conversation

LEDfan
Copy link
Member

@LEDfan LEDfan commented Feb 7, 2018

New release => new tests 😃

Currently Travis is failing because of some deprecated features used in NC 13:

The command "vendor/bin/php-cs-fixer fix --dry-run --using-cache=no" exited with 0.
2.27s$ rm -r build/ && rm -r vendor/ && ../../occ app:check-code ojsxc
Analysing /home/travis/build/nextcloud/nextcloud/apps/ojsxc/appinfo/app.php
 2 errors
    line    5: OCP\App - Static method of deprecated class must not be called
    line    5: OCP\App::registerPersonal - Method of deprecated class must not be called
Analysing /home/travis/build/nextcloud/nextcloud/apps/ojsxc/lib/Controller/SettingsController.php
 2 errors
    line  269: OCP\User - Static method of deprecated class must not be called
    line  269: OCP\User::isLoggedIn - Method of deprecated class must not be called
Analysing /home/travis/build/nextcloud/nextcloud/apps/ojsxc/settings/personal.php
 2 errors
    line    7: OCP\User - Static method of deprecated class must not be called
    line    7: OCP\User::checkLoggedIn - Method of deprecated class must not be called
App is not compliant

@sualko what do you think would be the best solution:

 - stable10 is EOL
 - stable13 is released
 - master/NC14 requires PHP 7 and supports PHP 7.1 and 7.2

Signed-off-by: Tobia De Koninck <[email protected]>
@LEDfan
Copy link
Member Author

LEDfan commented Feb 7, 2018

Some more deprecated/compatibility stuff which could be solved:

@sualko
Copy link
Member

sualko commented Feb 7, 2018

Mh, I only get and see on Travis the last two errors, but anyway I don't want to release different versions for different nc versions, because then the version would not align with the jsxc release.

I think it's ok if we ignore them and the other stuff should be updated in a new pr. Do you have an idea how we still could satisfy travis?

@codecov
Copy link

codecov bot commented Feb 8, 2018

Codecov Report

Merging #86 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #86      +/-   ##
============================================
+ Coverage     81.15%   81.17%   +0.02%     
+ Complexity      275      274       -1     
============================================
  Files            29       29              
  Lines           939      951      +12     
============================================
+ Hits            762      772      +10     
- Misses          177      179       +2
Impacted Files Coverage Δ Complexity Δ
lib/rosterpush.php 100% <ø> (ø) 11 <0> (ø) ⬇️
lib/newcontentcontainer.php 100% <ø> (ø) 3 <0> (ø) ⬇️
lib/Controller/HttpBindController.php 100% <100%> (ø) 25 <0> (-1) ⬇️
lib/Controller/SettingsController.php 57.8% <0%> (-0.1%) 59% <0%> (ø)
lib/db/iqroster.php 100% <0%> (ø) 2% <0%> (ø) ⬇️
lib/Controller/ManagedServerController.php 100% <0%> (ø) 15% <0%> (ø) ⬇️
lib/db/iqrosterpush.php 100% <0%> (ø) 3% <0%> (ø) ⬇️
lib/TimeLimitedToken.php 100% <0%> (ø) 6% <0%> (ø) ⬇️
lib/DataRetriever.php 0% <0%> (ø) 6% <0%> (ø) ⬇️
lib/Controller/ExternalApiController.php 97.5% <0%> (+0.09%) 29% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3ac678...a7414fc. Read the comment docs.

@LEDfan
Copy link
Member Author

LEDfan commented Feb 8, 2018

That's fine for me. I added || true to the command on Travis so the builds should pass again. Currently the PHP 7.2 build is failing but this should be fixed by #88

@sualko
Copy link
Member

sualko commented Feb 8, 2018

Do you have an idea how to fix travis? I tried to remove the composer.lock file in 349f2b4, but this just gave some other errors.

@LEDfan
Copy link
Member Author

LEDfan commented Feb 8, 2018

Let's see if this works 🙈 ....

@LEDfan
Copy link
Member Author

LEDfan commented Feb 8, 2018

Builds are finally working!

@LEDfan LEDfan merged commit 104cd91 into master Feb 8, 2018
@LEDfan LEDfan deleted the update_travis branch February 8, 2018 13:11
@sualko
Copy link
Member

sualko commented Feb 8, 2018

🎉 great work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants