Skip to content

Commit 901c530

Browse files
Upgraded scala.js and scalatest libs
1 parent 4d86003 commit 901c530

File tree

17 files changed

+58
-48
lines changed

17 files changed

+58
-48
lines changed

.travis.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,38 @@ jdk:
55
dist: trusty
66
env:
77
global:
8-
- TRAVIS_NODE_VERSION="8"
98
- TRAVIS_SBT_VERSION="1.2.8"
109
- secure: SVb4Odan6bePQ6v8BhAWYkW2JhHYiS4UojkmEZacEsobjgNAkI4qSGYjC8pcIvBUKnFPafHRG/ggtrZ8ml1beX9bXQxJsmGOutJEMuQyInPUDXdvUHABNBd/8NL8tJhZS6Ijnzbar6i78vizZNW88V9HpWwk2HZQyHw9q5mp1R0nHOG9L1474I62hnc/rclAPecWgUbiTft2mPXRohmb8aFhqAceYao+1g1LY4AuXyPiM3s4sU1YzdL/DJLWVbt8WUAmPUfiAKpGSQY98bBBxCfJrNDezIhENcY/MTo5+cGEcVtfJKu9psL5fShOPUChnnonHSb34/XWyocgN8ZrCQTfhqI1lIzB8HOc3nRiKwPfUcZ2MQ5P4fJi62rzfhEz8/r3HlvhKM+m1++wc7ocsb7+ku59xn93DWYkXKVkD2r3DnzaANd2FMFplopFSEgBJVGTKOXQSSVriMKeTpg2q13PvDhhUTIgOus4MX+n/q4XiAFLygCceRXq1mXFKi0sjWLrJkBldkg8VA1dL31RdK5ZN5K+56gSYPVhvOVeKx2URkbNDV3Y0z8rM33852VI7pdkRuGAZZFfKwVGOFlc5HcbLRln0e2oql1KtOWjyfFicT9pjHfeg2dfIrKBKMrJGavaLdh8kuX/0kKp37SdP+mJtVqJTwwoCXJol6tcl/s=
1110
- secure: IblLuw3rbTHi3Bozgz2h5IUaL9VfdLAdep4u95V4A/GGxR/nfXkfOuxT10c1+OrYc2+KxKDGChhlTvMd6HsHi5LUmPgfgB4MQMXs4OTsBDX3mMD4uSWbzBFyq/Z0YdbJxfQisJkseWDl7HWGuiAJyiRUdLkyE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rkOCda+eGxmz94sTdfUggkw2Y4sgIg0vx6eyyXsac4Axi4ATuX2qhoQlRA+GmrqUsc/Se40/GnwPnJKmys0I5FB8EpQ/Wwq3CFgJ9353jFpbB0OcVcL4JskD8Mv/W1s=
1312
before_install:
14-
- nvm install 6
15-
- nvm use 6
16-
- node --version
13+
- nvm install 12 &&
14+
nvm use 12
15+
- node --version &&
16+
npm --version
1717
- if [ $TRAVIS_PULL_REQUEST = 'false' ]; then
1818
openssl aes-256-cbc -K $encrypted_76f871b6a7fb_key -iv $encrypted_76f871b6a7fb_iv -in travis/secrets.tar.enc -out travis/secrets.tar -d;
1919
tar xv -C travis -f travis/secrets.tar;
2020
fi
2121
script:
2222
- sbt clean coverage test coverageReport &&
23-
sbt coverageAggregate
24-
after_success:
25-
- sbt coveralls
26-
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" -o "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ]; then
23+
sbt coverageAggregate &&
24+
sbt coveralls &&
25+
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" -o "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ]; then
2726
if [ -z "$TRAVIS_TAG" ]; then
2827
echo "Publish a snapshot";
2928
sbt clean publish;
3029
else
3130
echo "Publish a release version=$TRAVIS_TAG";
32-
version=$TRAVIS_TAG sbt clean publishSigned sonatypeRelease;
31+
version=$TRAVIS_TAG sbt clean publishSigned sonatypeBundleRelease;
3332
fi
3433
else
3534
echo "This is not a master branch commit. Skipping the publish/release step";
3635
fi
3736
cache:
3837
directories:
38+
- ~/.npm
39+
- ~/.nvm
3940
- "$HOME/.ivy2/cache"
4041
- "$HOME/.sbt"
4142
before_cache:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Build Status](https://travis-ci.com/scommons/scommons-api.svg?branch=master)](https://travis-ci.com/scommons/scommons-api)
33
[![Coverage Status](https://coveralls.io/repos/github/scommons/scommons-api/badge.svg?branch=master)](https://coveralls.io/github/scommons/scommons-api?branch=master)
44
[![scala-index](https://index.scala-lang.org/scommons/scommons-api/scommons-api-core/latest.svg)](https://index.scala-lang.org/scommons/scommons-api/scommons-api-core)
5-
[![Scala.js](https://www.scala-js.org/assets/badges/scalajs-0.6.17.svg)](https://www.scala-js.org)
5+
[![Scala.js](https://www.scala-js.org/assets/badges/scalajs-0.6.29.svg)](https://www.scala-js.org)
66

77
## scommons-api
88
Common REST API Scala/Scala.js components

admin/shared/src/test/scala/scommons/api/admin/permission/PermissionNodeSpec.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package scommons.api.admin.permission
22

3-
import org.scalatest.{FlatSpec, Matchers}
3+
import org.scalatest.flatspec.AnyFlatSpec
4+
import org.scalatest.matchers.should.Matchers
45
import scommons.api.admin.permission.PermissionNodeSpec._
56

6-
class PermissionNodeSpec extends FlatSpec with Matchers {
7+
class PermissionNodeSpec extends AnyFlatSpec with Matchers {
78

89
it should "fail to create new PermissionNode if name is empty" in {
910
//when

admin/shared/src/test/scala/scommons/api/admin/permission/PermissionSpec.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package scommons.api.admin.permission
22

3-
import org.scalatest.{FlatSpec, Matchers}
3+
import org.scalatest.flatspec.AnyFlatSpec
4+
import org.scalatest.matchers.should.Matchers
45

5-
class PermissionSpec extends FlatSpec with Matchers {
6+
class PermissionSpec extends AnyFlatSpec with Matchers {
67

78
it should "fail to create new Permission if name is empty" in {
89
//when

core/src/test/scala/scommons/api/ApiStatusSpec.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package scommons.api
22

3-
import org.scalatest.{FlatSpec, Matchers}
3+
import org.scalatest.flatspec.AnyFlatSpec
4+
import org.scalatest.matchers.should.Matchers
45

5-
class ApiStatusSpec extends FlatSpec with Matchers {
6+
class ApiStatusSpec extends AnyFlatSpec with Matchers {
67

78
it should "return successful status" in {
89
//when

core/src/test/scala/scommons/api/StatusResponseSpec.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package scommons.api
22

3-
import org.scalatest.{FlatSpec, Matchers}
3+
import org.scalatest.flatspec.AnyFlatSpec
4+
import org.scalatest.matchers.should.Matchers
45

5-
class StatusResponseSpec extends FlatSpec with Matchers {
6+
class StatusResponseSpec extends AnyFlatSpec with Matchers {
67

78
it should "return successful status" in {
89
//when & then

core/src/test/scala/scommons/api/http/ApiHttpClientSpec.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package scommons.api.http
22

33
import org.scalamock.scalatest.AsyncMockFactory
4-
import org.scalatest.{AsyncFlatSpec, Inside, Matchers}
4+
import org.scalatest.flatspec.AsyncFlatSpec
5+
import org.scalatest.Inside
6+
import org.scalatest.matchers.should.Matchers
57
import play.api.libs.json.Json.{stringify, toJson}
68
import play.api.libs.json._
79
import scommons.api.http.ApiHttpClient._

joda-time/js/src/test/scala/org/joda/time/DateTimeSpec.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package org.joda.time
22

3-
import org.scalatest.{FlatSpec, Matchers}
3+
import org.scalatest.flatspec.AnyFlatSpec
4+
import org.scalatest.matchers.should.Matchers
45

56
import scala.scalajs.js
67

7-
class DateTimeSpec extends FlatSpec with Matchers {
8+
class DateTimeSpec extends AnyFlatSpec with Matchers {
89

910
it should "fail if DateTime value is not ISO8601 time formatted string" in {
1011
//given

joda-time/js/src/test/scala/org/joda/time/LocalDateSpec.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package org.joda.time
22

3-
import org.scalatest.{FlatSpec, Matchers}
3+
import org.scalatest.flatspec.AnyFlatSpec
4+
import org.scalatest.matchers.should.Matchers
45

56
import scala.scalajs.js
67

7-
class LocalDateSpec extends FlatSpec with Matchers {
8+
class LocalDateSpec extends AnyFlatSpec with Matchers {
89

910
it should "fail if LocalDate value is not ISO8601 time formatted string" in {
1011
//given

joda-time/js/src/test/scala/org/joda/time/LocalTimeSpec.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package org.joda.time
22

3-
import org.scalatest.{FlatSpec, Matchers}
3+
import org.scalatest.flatspec.AnyFlatSpec
4+
import org.scalatest.matchers.should.Matchers
45

56
import scala.scalajs.js
67

7-
class LocalTimeSpec extends FlatSpec with Matchers {
8+
class LocalTimeSpec extends AnyFlatSpec with Matchers {
89

910
it should "fail if LocalTime value is not ISO8601 time formatted string" in {
1011
//given

0 commit comments

Comments
 (0)