test: optimize total Travis run time · nodejs/node@8cf3af1 (original) (raw)

``

1

`+

x-ccache-setup-steps: &ccache-setup-steps

`

``

2

`+

`

``

3

`+

`

``

4

`+

`

``

5

`+

`

``

6

+

1

7

`os: linux

`

2

8

`dist: xenial

`

``

9

`+

language: cpp

`

3

10

`jobs:

`

4

11

`include:

`

5

12

` - stage: "Lint and Compile"

`

`@@ -21,49 +28,55 @@ jobs:

`

21

28

` - NODE=$(which node) make lint lint-py

`

22

29

``

23

30

` - name: "Compile V8"

`

24

``

`-

language: cpp

`

25

31

`cache: ccache

`

26

32

`addons:

`

27

33

`apt:

`

28

34

`sources:

`

29

35

` - ubuntu-toolchain-r-test

`

30

36

`packages:

`

31

37

` - g++-6

`

32

``

`-

install:

`

33

``

`-

`

``

38

`+

install: *ccache-setup-steps

`

34

39

`script:

`

35

``

`-

`

``

40

`+

`

``

41

`+

`

36

42

``

37

43

` - name: "Compile Node.js"

`

38

``

`-

language: cpp

`

39

44

`cache: ccache

`

40

45

`addons:

`

41

46

`apt:

`

42

47

`sources:

`

43

48

` - ubuntu-toolchain-r-test

`

44

49

`packages:

`

45

50

` - g++-6

`

46

``

`-

install:

`

47

``

`-

`

``

51

`+

install: *ccache-setup-steps

`

48

52

`script:

`

49

``

`-

`

``

53

`+

`

``

54

`+

`

``

55

`+

`

``

56

`+

`

50

57

``

51

58

` - stage: "Tests"

`

52

``

`-

name: "Test Suite"

`

53

``

`-

language: cpp

`

``

59

`+

name: "Test JS Suites"

`

54

60

`cache: ccache

`

55

``

`-

addons:

`

56

``

`-

apt:

`

57

``

`-

sources:

`

58

``

`-

`

59

``

`-

packages:

`

60

``

`-

`

61

61

`install:

`

62

``

`-

`

63

``

`-

`

64

``

`-

We already have a compile log in the above job

`

65

``

`-

`

66

``

`-

`

``

62

`+

`

``

63

`+

`

``

64

`+

script:

`

``

65

`+

`

``

66

+

``

67

`+

`

``

68

`+

cache: ccache

`

``

69

`+

install:

`

``

70

`+

`

``

71

`+

`

``

72

`+

`

``

73

`+

`

``

74

`+

`

``

75

`+

`

``

76

`+

`

``

77

`+

`

``

78

`+

`

67

79

`script:

`

68

``

`-

`

69

``

`-

`

``

80

`+

`

``

81

`+

`

``

82

`+

`